2018-10-11 08:55:38 +00:00
|
|
|
"""Hass.io const variables."""
|
2021-06-28 11:49:58 +00:00
|
|
|
from enum import Enum
|
2018-10-11 08:55:38 +00:00
|
|
|
|
2021-02-15 17:18:45 +00:00
|
|
|
DOMAIN = "hassio"
|
|
|
|
|
|
|
|
ATTR_ADDON = "addon"
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_ADDONS = "addons"
|
2021-02-15 17:18:45 +00:00
|
|
|
ATTR_ADMIN = "admin"
|
2022-04-27 09:41:16 +00:00
|
|
|
ATTR_COMPRESSED = "compressed"
|
2021-02-15 17:18:45 +00:00
|
|
|
ATTR_CONFIG = "config"
|
|
|
|
ATTR_DATA = "data"
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_DISCOVERY = "discovery"
|
2021-02-15 17:18:45 +00:00
|
|
|
ATTR_ENABLE = "enable"
|
2022-10-31 13:57:54 +00:00
|
|
|
ATTR_ENDPOINT = "endpoint"
|
2021-02-15 17:18:45 +00:00
|
|
|
ATTR_FOLDERS = "folders"
|
2022-10-31 13:57:54 +00:00
|
|
|
ATTR_HEALTHY = "healthy"
|
2021-02-15 17:18:45 +00:00
|
|
|
ATTR_HOMEASSISTANT = "homeassistant"
|
|
|
|
ATTR_INPUT = "input"
|
2022-10-31 13:57:54 +00:00
|
|
|
ATTR_METHOD = "method"
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_PANELS = "panels"
|
2021-02-15 17:18:45 +00:00
|
|
|
ATTR_PASSWORD = "password"
|
2022-10-31 13:57:54 +00:00
|
|
|
ATTR_RESULT = "result"
|
|
|
|
ATTR_SUPPORTED = "supported"
|
|
|
|
ATTR_TIMEOUT = "timeout"
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_TITLE = "title"
|
2022-10-31 13:57:54 +00:00
|
|
|
ATTR_UNHEALTHY = "unhealthy"
|
|
|
|
ATTR_UNHEALTHY_REASONS = "unhealthy_reasons"
|
|
|
|
ATTR_UNSUPPORTED = "unsupported"
|
|
|
|
ATTR_UNSUPPORTED_REASONS = "unsupported_reasons"
|
|
|
|
ATTR_UPDATE_KEY = "update_key"
|
2021-02-15 17:18:45 +00:00
|
|
|
ATTR_USERNAME = "username"
|
|
|
|
ATTR_UUID = "uuid"
|
|
|
|
ATTR_WS_EVENT = "event"
|
|
|
|
|
2022-06-21 15:11:20 +00:00
|
|
|
X_AUTH_TOKEN = "X-Supervisor-Token"
|
2019-04-01 12:16:16 +00:00
|
|
|
X_INGRESS_PATH = "X-Ingress-Path"
|
2019-07-31 19:25:30 +00:00
|
|
|
X_HASS_USER_ID = "X-Hass-User-ID"
|
|
|
|
X_HASS_IS_ADMIN = "X-Hass-Is-Admin"
|
2023-03-08 14:21:11 +00:00
|
|
|
X_HASS_SOURCE = "X-Hass-Source"
|
2021-02-15 17:18:45 +00:00
|
|
|
|
|
|
|
WS_TYPE = "type"
|
|
|
|
WS_ID = "id"
|
|
|
|
|
|
|
|
WS_TYPE_API = "supervisor/api"
|
2021-02-25 18:52:11 +00:00
|
|
|
WS_TYPE_EVENT = "supervisor/event"
|
|
|
|
WS_TYPE_SUBSCRIBE = "supervisor/subscribe"
|
2021-02-15 17:18:45 +00:00
|
|
|
|
|
|
|
EVENT_SUPERVISOR_EVENT = "supervisor_event"
|
2022-10-31 13:57:54 +00:00
|
|
|
EVENT_SUPERVISOR_UPDATE = "supervisor_update"
|
|
|
|
EVENT_HEALTH_CHANGED = "health_changed"
|
|
|
|
EVENT_SUPPORTED_CHANGED = "supported_changed"
|
|
|
|
|
|
|
|
UPDATE_KEY_SUPERVISOR = "supervisor"
|
2021-03-01 08:41:04 +00:00
|
|
|
|
2022-04-01 15:31:39 +00:00
|
|
|
ATTR_AUTO_UPDATE = "auto_update"
|
2021-03-01 08:41:04 +00:00
|
|
|
ATTR_VERSION = "version"
|
|
|
|
ATTR_VERSION_LATEST = "version_latest"
|
2021-10-22 10:23:21 +00:00
|
|
|
ATTR_CPU_PERCENT = "cpu_percent"
|
2022-03-22 11:21:12 +00:00
|
|
|
ATTR_CHANGELOG = "changelog"
|
2021-10-22 10:23:21 +00:00
|
|
|
ATTR_MEMORY_PERCENT = "memory_percent"
|
2021-03-01 08:41:04 +00:00
|
|
|
ATTR_SLUG = "slug"
|
2021-10-25 22:21:44 +00:00
|
|
|
ATTR_STATE = "state"
|
2021-10-26 17:58:17 +00:00
|
|
|
ATTR_STARTED = "started"
|
2021-03-01 08:41:04 +00:00
|
|
|
ATTR_URL = "url"
|
|
|
|
ATTR_REPOSITORY = "repository"
|
2021-06-28 11:49:58 +00:00
|
|
|
|
2021-08-17 10:14:14 +00:00
|
|
|
DATA_KEY_ADDONS = "addons"
|
|
|
|
DATA_KEY_OS = "os"
|
2022-03-22 11:21:12 +00:00
|
|
|
DATA_KEY_SUPERVISOR = "supervisor"
|
|
|
|
DATA_KEY_CORE = "core"
|
2023-03-13 14:39:49 +00:00
|
|
|
DATA_KEY_HOST = "host"
|
2021-08-17 10:14:14 +00:00
|
|
|
|
|
|
|
|
2021-06-28 11:49:58 +00:00
|
|
|
class SupervisorEntityModel(str, Enum):
|
|
|
|
"""Supervisor entity model."""
|
|
|
|
|
|
|
|
ADDON = "Home Assistant Add-on"
|
|
|
|
OS = "Home Assistant Operating System"
|
2022-03-22 11:21:12 +00:00
|
|
|
CORE = "Home Assistant Core"
|
|
|
|
SUPERVIOSR = "Home Assistant Supervisor"
|
2023-03-13 14:39:49 +00:00
|
|
|
HOST = "Home Assistant Host"
|