mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-20 14:58:56 +00:00
Compare commits
3 Commits
leave-fold
...
fix-absolu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae32510030 | ||
|
|
d4b1aa82ab | ||
|
|
7e39226f42 |
@@ -7,9 +7,6 @@ ENV \
|
||||
CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 \
|
||||
UV_SYSTEM_PYTHON=true
|
||||
|
||||
ARG \
|
||||
COSIGN_VERSION
|
||||
|
||||
# Install base
|
||||
WORKDIR /usr/src
|
||||
RUN \
|
||||
@@ -25,8 +22,6 @@ RUN \
|
||||
openssl \
|
||||
yaml \
|
||||
\
|
||||
&& curl -Lso /usr/bin/cosign "https://github.com/home-assistant/cosign/releases/download/${COSIGN_VERSION}/cosign_${BUILD_ARCH}" \
|
||||
&& chmod a+x /usr/bin/cosign \
|
||||
&& pip3 install uv==0.9.18
|
||||
|
||||
# Install requirements
|
||||
|
||||
@@ -5,8 +5,6 @@ build_from:
|
||||
cosign:
|
||||
base_identity: https://github.com/home-assistant/docker-base/.*
|
||||
identity: https://github.com/home-assistant/supervisor/.*
|
||||
args:
|
||||
COSIGN_VERSION: 2.5.3
|
||||
labels:
|
||||
io.hass.type: supervisor
|
||||
org.opencontainers.image.title: Home Assistant Supervisor
|
||||
|
||||
@@ -9,7 +9,7 @@ pytest-cov==7.0.0
|
||||
pytest-timeout==2.4.0
|
||||
pytest==9.0.2
|
||||
ruff==0.14.10
|
||||
time-machine==3.1.0
|
||||
time-machine==3.2.0
|
||||
types-docker==7.1.0.20251202
|
||||
types-pyyaml==6.0.12.20250915
|
||||
types-requests==2.32.4.20250913
|
||||
|
||||
@@ -24,8 +24,6 @@ from securetar import AddFileError, atomic_contents_add, secure_path
|
||||
import voluptuous as vol
|
||||
from voluptuous.humanize import humanize_error
|
||||
|
||||
from supervisor.utils.dt import utc_from_timestamp
|
||||
|
||||
from ..bus import EventListener
|
||||
from ..const import (
|
||||
ATTR_ACCESS_TOKEN,
|
||||
@@ -92,6 +90,7 @@ from ..resolution.data import Issue
|
||||
from ..store.addon import AddonStore
|
||||
from ..utils import check_port
|
||||
from ..utils.apparmor import adjust_profile
|
||||
from ..utils.dt import utc_from_timestamp
|
||||
from ..utils.json import read_json_file, write_json_file
|
||||
from ..utils.sentry import async_capture_exception
|
||||
from .const import (
|
||||
|
||||
@@ -11,8 +11,6 @@ from typing import Any
|
||||
|
||||
from awesomeversion import AwesomeVersion, AwesomeVersionException
|
||||
|
||||
from supervisor.utils.dt import utc_from_timestamp
|
||||
|
||||
from ..const import (
|
||||
ATTR_ADVANCED,
|
||||
ATTR_APPARMOR,
|
||||
@@ -100,6 +98,7 @@ from ..exceptions import (
|
||||
from ..jobs.const import JOB_GROUP_ADDON
|
||||
from ..jobs.job_group import JobGroup
|
||||
from ..utils import version_is_new_enough
|
||||
from ..utils.dt import utc_from_timestamp
|
||||
from .configuration import FolderMapping
|
||||
from .const import (
|
||||
ATTR_BACKUP,
|
||||
|
||||
@@ -7,8 +7,6 @@ from aiohttp import web
|
||||
from awesomeversion import AwesomeVersion
|
||||
import voluptuous as vol
|
||||
|
||||
from supervisor.resolution.const import ContextType, IssueType, SuggestionType
|
||||
|
||||
from ..const import (
|
||||
ATTR_ENABLE_IPV6,
|
||||
ATTR_HOSTNAME,
|
||||
@@ -23,6 +21,7 @@ from ..const import (
|
||||
)
|
||||
from ..coresys import CoreSysAttributes
|
||||
from ..exceptions import APINotFound
|
||||
from ..resolution.const import ContextType, IssueType, SuggestionType
|
||||
from .utils import api_process, api_validate
|
||||
|
||||
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -10,8 +10,6 @@ from aiohttp.web import Request, StreamResponse, middleware
|
||||
from aiohttp.web_exceptions import HTTPBadRequest, HTTPForbidden, HTTPUnauthorized
|
||||
from awesomeversion import AwesomeVersion
|
||||
|
||||
from supervisor.homeassistant.const import LANDINGPAGE
|
||||
|
||||
from ...addons.const import RE_SLUG
|
||||
from ...const import (
|
||||
REQUEST_FROM,
|
||||
@@ -23,6 +21,7 @@ from ...const import (
|
||||
VALID_API_STATES,
|
||||
)
|
||||
from ...coresys import CoreSys, CoreSysAttributes
|
||||
from ...homeassistant.const import LANDINGPAGE
|
||||
from ...utils import version_is_new_enough
|
||||
from ..utils import api_return_error, extract_supervisor_token
|
||||
|
||||
|
||||
@@ -13,11 +13,10 @@ from aiohttp.hdrs import AUTHORIZATION, CONTENT_TYPE
|
||||
from aiohttp.http_websocket import WSMsgType
|
||||
from aiohttp.web_exceptions import HTTPBadGateway, HTTPUnauthorized
|
||||
|
||||
from supervisor.utils.logging import AddonLoggerAdapter
|
||||
|
||||
from ..coresys import CoreSysAttributes
|
||||
from ..exceptions import APIError, HomeAssistantAPIError, HomeAssistantAuthError
|
||||
from ..utils.json import json_dumps
|
||||
from ..utils.logging import AddonLoggerAdapter
|
||||
|
||||
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -5,10 +5,9 @@ from typing import Any
|
||||
from aiohttp import web
|
||||
import voluptuous as vol
|
||||
|
||||
from supervisor.exceptions import APIGone
|
||||
|
||||
from ..const import ATTR_FORCE_SECURITY, ATTR_PWNED
|
||||
from ..coresys import CoreSysAttributes
|
||||
from ..exceptions import APIGone
|
||||
from .utils import api_process, api_validate
|
||||
|
||||
# pylint: disable=no-value-for-parameter
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
from typing import Any
|
||||
|
||||
from supervisor.dbus.utils import dbus_connected
|
||||
|
||||
from ...utils import dbus_connected
|
||||
from .const import BOARD_NAME_SUPERVISED
|
||||
from .interface import BoardProxy
|
||||
|
||||
|
||||
@@ -7,8 +7,7 @@ from typing import Any
|
||||
|
||||
from dbus_fast.aio.message_bus import MessageBus
|
||||
|
||||
from supervisor.exceptions import DBusInterfaceError, DBusNotConnectedError
|
||||
|
||||
from ..exceptions import DBusInterfaceError, DBusNotConnectedError
|
||||
from ..utils.dbus import DBus
|
||||
from .utils import dbus_connected
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
from typing import Any
|
||||
|
||||
from supervisor.dbus.network.setting import NetworkSetting
|
||||
|
||||
from ..const import (
|
||||
DBUS_ATTR_CONNECTION,
|
||||
DBUS_ATTR_ID,
|
||||
@@ -22,6 +20,7 @@ from ..const import (
|
||||
from ..interface import DBusInterfaceProxy, dbus_property
|
||||
from ..utils import dbus_connected
|
||||
from .ip_configuration import IpConfiguration
|
||||
from .setting import NetworkSetting
|
||||
|
||||
|
||||
class NetworkConnection(DBusInterfaceProxy):
|
||||
|
||||
@@ -6,8 +6,6 @@ from pathlib import Path
|
||||
import shutil
|
||||
from typing import Any
|
||||
|
||||
from supervisor.resolution.const import UnhealthyReason
|
||||
|
||||
from ..coresys import CoreSys, CoreSysAttributes
|
||||
from ..exceptions import (
|
||||
DBusError,
|
||||
@@ -15,6 +13,7 @@ from ..exceptions import (
|
||||
DBusObjectError,
|
||||
HardwareNotFound,
|
||||
)
|
||||
from ..resolution.const import UnhealthyReason
|
||||
from .const import UdevSubsystem
|
||||
from .data import Device
|
||||
|
||||
|
||||
@@ -5,8 +5,6 @@ from contextlib import suppress
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
from supervisor.utils.sentry import async_capture_exception
|
||||
|
||||
from ..const import ATTR_HOST_INTERNET
|
||||
from ..coresys import CoreSys, CoreSysAttributes
|
||||
from ..dbus.const import (
|
||||
@@ -34,6 +32,7 @@ from ..exceptions import (
|
||||
from ..jobs.const import JobCondition
|
||||
from ..jobs.decorator import Job
|
||||
from ..resolution.checks.network_interface_ipv4 import CheckNetworkInterfaceIPV4
|
||||
from ..utils.sentry import async_capture_exception
|
||||
from .configuration import AccessPoint, Interface
|
||||
from .const import InterfaceMethod, WifiMode
|
||||
|
||||
|
||||
@@ -5,10 +5,9 @@ import logging
|
||||
from docker.errors import DockerException
|
||||
from requests import RequestException
|
||||
|
||||
from supervisor.docker.const import ADDON_BUILDER_IMAGE
|
||||
|
||||
from ...const import CoreState
|
||||
from ...coresys import CoreSys
|
||||
from ...docker.const import ADDON_BUILDER_IMAGE
|
||||
from ..const import (
|
||||
ContextType,
|
||||
IssueType,
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
"""Evaluation class for restart policy."""
|
||||
|
||||
from supervisor.docker.const import RestartPolicy
|
||||
from supervisor.docker.interface import DockerInterface
|
||||
|
||||
from ...const import CoreState
|
||||
from ...coresys import CoreSys
|
||||
from ...docker.const import RestartPolicy
|
||||
from ...docker.interface import DockerInterface
|
||||
from ..const import UnsupportedReason
|
||||
from .base import EvaluateBase
|
||||
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
|
||||
import logging
|
||||
|
||||
from supervisor.exceptions import BackupFileNotFoundError
|
||||
|
||||
from ...backups.const import BackupType
|
||||
from ...coresys import CoreSys
|
||||
from ...exceptions import BackupFileNotFoundError
|
||||
from ..const import MINIMUM_FULL_BACKUPS, ContextType, IssueType, SuggestionType
|
||||
from .base import FixupBase
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ from pathlib import Path
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from supervisor.utils import get_latest_mtime
|
||||
|
||||
from ..const import (
|
||||
ATTR_MAINTAINER,
|
||||
ATTR_NAME,
|
||||
@@ -20,6 +18,7 @@ from ..const import (
|
||||
)
|
||||
from ..coresys import CoreSys, CoreSysAttributes
|
||||
from ..exceptions import ConfigurationFileError, StoreError
|
||||
from ..utils import get_latest_mtime
|
||||
from ..utils.common import read_json_or_yaml_file
|
||||
from .const import BuiltinRepository
|
||||
from .git import GitRepo
|
||||
|
||||
@@ -13,8 +13,6 @@ import aiohttp
|
||||
from aiohttp.client_exceptions import ClientError
|
||||
from awesomeversion import AwesomeVersion, AwesomeVersionException
|
||||
|
||||
from supervisor.jobs import ChildJobSyncFilter
|
||||
|
||||
from .const import (
|
||||
ATTR_SUPERVISOR_INTERNET,
|
||||
SUPERVISOR_VERSION,
|
||||
@@ -32,6 +30,7 @@ from .exceptions import (
|
||||
SupervisorUnknownError,
|
||||
SupervisorUpdateError,
|
||||
)
|
||||
from .jobs import ChildJobSyncFilter
|
||||
from .jobs.const import JobCondition, JobThrottle
|
||||
from .jobs.decorator import Job
|
||||
from .resolution.const import ContextType, IssueType, UnhealthyReason
|
||||
|
||||
@@ -8,8 +8,6 @@ import logging
|
||||
import aiohttp
|
||||
from awesomeversion import AwesomeVersion
|
||||
|
||||
from supervisor.jobs.const import JobConcurrency, JobThrottle
|
||||
|
||||
from .bus import EventListener
|
||||
from .const import (
|
||||
ATTR_AUDIO,
|
||||
@@ -32,6 +30,7 @@ from .const import (
|
||||
)
|
||||
from .coresys import CoreSys, CoreSysAttributes
|
||||
from .exceptions import UpdaterError, UpdaterJobError
|
||||
from .jobs.const import JobConcurrency, JobThrottle
|
||||
from .jobs.decorator import Job, JobCondition
|
||||
from .utils.common import FileConfiguration
|
||||
from .validate import SCHEMA_UPDATER_CONFIG
|
||||
|
||||
@@ -9,8 +9,8 @@ import re
|
||||
|
||||
from aiohttp import ClientResponse
|
||||
|
||||
from supervisor.exceptions import MalformedBinaryEntryError
|
||||
from supervisor.host.const import LogFormatter
|
||||
from ..exceptions import MalformedBinaryEntryError
|
||||
from ..host.const import LogFormatter
|
||||
|
||||
_RE_ANSI_CSI_COLORS_PATTERN = re.compile(r"\x1B\[[0-9;]*m")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user