core/homeassistant/components/hassio/const.py

41 lines
855 B
Python
Raw Normal View History

"""Hass.io const variables."""
DOMAIN = "hassio"
ATTR_ADDON = "addon"
2019-07-31 19:25:30 +00:00
ATTR_ADDONS = "addons"
ATTR_ADMIN = "admin"
ATTR_CONFIG = "config"
ATTR_DATA = "data"
2019-07-31 19:25:30 +00:00
ATTR_DISCOVERY = "discovery"
ATTR_ENABLE = "enable"
ATTR_FOLDERS = "folders"
ATTR_HOMEASSISTANT = "homeassistant"
ATTR_INPUT = "input"
2019-07-31 19:25:30 +00:00
ATTR_PANELS = "panels"
ATTR_PASSWORD = "password"
ATTR_SNAPSHOT = "snapshot"
2019-07-31 19:25:30 +00:00
ATTR_TITLE = "title"
ATTR_USERNAME = "username"
ATTR_UUID = "uuid"
ATTR_WS_EVENT = "event"
ATTR_ENDPOINT = "endpoint"
ATTR_METHOD = "method"
ATTR_TIMEOUT = "timeout"
2019-07-31 19:25:30 +00:00
X_HASSIO = "X-Hassio-Key"
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"
WS_TYPE = "type"
WS_ID = "id"
WS_TYPE_API = "supervisor/api"
WS_TYPE_EVENT = "supervisor/event"
WS_TYPE_SUBSCRIBE = "supervisor/subscribe"
EVENT_SUPERVISOR_EVENT = "supervisor_event"