Add docker config repair for supervisor issue (#93820)

This commit is contained in:
Mike Degatano 2023-05-30 16:08:45 -04:00 committed by GitHub
parent 05c3d8bb37
commit c25b26214b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 376 additions and 60 deletions

View file

@ -1,5 +1,5 @@
"""Hass.io const variables."""
from enum import Enum
from homeassistant.backports.enum import StrEnum
DOMAIN = "hassio"
@ -77,9 +77,12 @@ DATA_KEY_HOST = "host"
DATA_KEY_SUPERVISOR_ISSUES = "supervisor_issues"
PLACEHOLDER_KEY_REFERENCE = "reference"
PLACEHOLDER_KEY_COMPONENTS = "components"
ISSUE_KEY_SYSTEM_DOCKER_CONFIG = "issue_system_docker_config"
class SupervisorEntityModel(str, Enum):
class SupervisorEntityModel(StrEnum):
"""Supervisor entity model."""
ADDON = "Home Assistant Add-on"
@ -87,3 +90,17 @@ class SupervisorEntityModel(str, Enum):
CORE = "Home Assistant Core"
SUPERVIOSR = "Home Assistant Supervisor"
HOST = "Home Assistant Host"
class SupervisorIssueContext(StrEnum):
"""Context for supervisor issues."""
ADDON = "addon"
CORE = "core"
DNS_SERVER = "dns_server"
MOUNT = "mount"
OS = "os"
PLUGIN = "plugin"
SUPERVISOR = "supervisor"
STORE = "store"
SYSTEM = "system"