Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the script integration."""
2 
3 import logging
4 
5 DOMAIN = "script"
6 
7 ATTR_LAST_ACTION = "last_action"
8 ATTR_LAST_TRIGGERED = "last_triggered"
9 ATTR_VARIABLES = "variables"
10 
11 CONF_ADVANCED = "advanced"
12 CONF_EXAMPLE = "example"
13 CONF_FIELDS = "fields"
14 CONF_REQUIRED = "required"
15 CONF_TRACE = "trace"
16 
17 ENTITY_ID_FORMAT = DOMAIN + ".{}"
18 
19 EVENT_SCRIPT_STARTED = "script_started"
20 
21 LOGGER = logging.getLogger(__package__)