2019-09-24 14:05:19 +00:00
|
|
|
"""Constants for the Template Platform Components."""
|
|
|
|
|
2021-12-28 20:24:27 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2019-09-24 14:05:19 +00:00
|
|
|
CONF_AVAILABILITY_TEMPLATE = "availability_template"
|
2021-03-29 16:57:51 +00:00
|
|
|
CONF_ATTRIBUTE_TEMPLATES = "attribute_templates"
|
|
|
|
CONF_TRIGGER = "trigger"
|
2020-08-21 23:31:48 +00:00
|
|
|
|
|
|
|
DOMAIN = "template"
|
|
|
|
|
|
|
|
PLATFORM_STORAGE_KEY = "template_platforms"
|
|
|
|
|
2020-08-25 22:25:15 +00:00
|
|
|
PLATFORMS = [
|
2021-12-28 20:24:27 +00:00
|
|
|
Platform.ALARM_CONTROL_PANEL,
|
|
|
|
Platform.BINARY_SENSOR,
|
2022-01-03 09:03:37 +00:00
|
|
|
Platform.BUTTON,
|
2021-12-28 20:24:27 +00:00
|
|
|
Platform.COVER,
|
|
|
|
Platform.FAN,
|
|
|
|
Platform.LIGHT,
|
|
|
|
Platform.LOCK,
|
|
|
|
Platform.NUMBER,
|
|
|
|
Platform.SELECT,
|
|
|
|
Platform.SENSOR,
|
|
|
|
Platform.SWITCH,
|
|
|
|
Platform.VACUUM,
|
|
|
|
Platform.WEATHER,
|
2020-08-25 22:25:15 +00:00
|
|
|
]
|
2021-04-02 23:57:16 +00:00
|
|
|
|
|
|
|
CONF_AVAILABILITY = "availability"
|
|
|
|
CONF_ATTRIBUTES = "attributes"
|
2021-12-02 18:26:10 +00:00
|
|
|
CONF_ATTRIBUTE_TEMPLATES = "attribute_templates"
|
2021-04-02 23:57:16 +00:00
|
|
|
CONF_PICTURE = "picture"
|
2021-04-13 00:15:50 +00:00
|
|
|
CONF_OBJECT_ID = "object_id"
|