Sort and remove duplicates from template/const.py (#125591)

This commit is contained in:
Erik Montnemery 2024-09-09 15:11:18 +02:00 committed by GitHub
parent 8fff0075ba
commit dee4b33c64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,9 +3,19 @@
from homeassistant.const import Platform
CONF_ACTION = "action"
CONF_AVAILABILITY_TEMPLATE = "availability_template"
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_TRIGGER = "trigger"
CONF_TURN_OFF = "turn_off"
CONF_TURN_ON = "turn_on"
DOMAIN = "template"
@ -27,15 +37,3 @@ PLATFORMS = [
Platform.VACUUM,
Platform.WEATHER,
]
CONF_ATTRIBUTE_TEMPLATES = "attribute_templates"
CONF_ATTRIBUTES = "attributes"
CONF_AVAILABILITY = "availability"
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"