mirror of
https://github.com/home-assistant/core.git
synced 2025-05-12 01:49:16 +00:00

* Add plurals to template entities * Ruff * Ruffy ruff * Fix linters * Fix bug introduced after merging dev * Fix merge mistake * Revert adding automation helper * Revert "Fix bug introduced after merging dev" This reverts commit 098d478f150a06546fb9ec3668865fa5d763c6b2. * Fix blueprint validation * Apply suggestions from code review --------- Co-authored-by: Erik <erik@montnemery.com>
46 lines
1.0 KiB
Python
46 lines
1.0 KiB
Python
"""Constants for the Template Platform Components."""
|
|
|
|
from homeassistant.const import Platform
|
|
from homeassistant.helpers.typing import ConfigType
|
|
|
|
CONF_ATTRIBUTE_TEMPLATES = "attribute_templates"
|
|
CONF_ATTRIBUTES = "attributes"
|
|
CONF_AVAILABILITY = "availability"
|
|
CONF_AVAILABILITY_TEMPLATE = "availability_template"
|
|
CONF_MAX = "max"
|
|
CONF_MIN = "min"
|
|
CONF_OBJECT_ID = "object_id"
|
|
CONF_PICTURE = "picture"
|
|
CONF_PRESS = "press"
|
|
CONF_STEP = "step"
|
|
CONF_TURN_OFF = "turn_off"
|
|
CONF_TURN_ON = "turn_on"
|
|
|
|
DOMAIN = "template"
|
|
|
|
PLATFORM_STORAGE_KEY = "template_platforms"
|
|
|
|
PLATFORMS = [
|
|
Platform.ALARM_CONTROL_PANEL,
|
|
Platform.BINARY_SENSOR,
|
|
Platform.BUTTON,
|
|
Platform.COVER,
|
|
Platform.FAN,
|
|
Platform.IMAGE,
|
|
Platform.LIGHT,
|
|
Platform.LOCK,
|
|
Platform.NUMBER,
|
|
Platform.SELECT,
|
|
Platform.SENSOR,
|
|
Platform.SWITCH,
|
|
Platform.VACUUM,
|
|
Platform.WEATHER,
|
|
]
|
|
|
|
|
|
class TemplateConfig(dict):
|
|
"""Dummy class to allow adding attributes."""
|
|
|
|
raw_config: ConfigType | None = None
|
|
raw_blueprint_inputs: ConfigType | None = None
|