251 files
This commit is contained in:
@@ -78,6 +78,10 @@ TRIGGER_ENTITY_DOMAINS = [
|
||||
"number",
|
||||
"input_number",
|
||||
"input_boolean",
|
||||
# #215: a counter helper counts prints, cycles or uses; its state is the
|
||||
# number. Missing from this list since it was written, and from the
|
||||
# task dialog since its entity picker replaced the free text (2.56.0).
|
||||
"counter",
|
||||
"switch",
|
||||
"climate",
|
||||
"vacuum",
|
||||
@@ -94,6 +98,18 @@ TRIGGER_ENTITY_DOMAINS = [
|
||||
"lock",
|
||||
# #204: Plant Monitor (HACS) sums a plant up as ok / problem.
|
||||
"plant",
|
||||
# Typed in freely before the task dialog's picker (2.56.0) and handled by
|
||||
# the triggers all along (audit after #215): a selection for a state
|
||||
# change (a wash programme), a date for the due-date trigger (an
|
||||
# input_datetime / date / datetime state is an ISO date), a timer's
|
||||
# active time, an update that is available.
|
||||
"input_select",
|
||||
"select",
|
||||
"input_datetime",
|
||||
"date",
|
||||
"datetime",
|
||||
"timer",
|
||||
"update",
|
||||
]
|
||||
|
||||
|
||||
@@ -969,7 +985,7 @@ class TriggerConfigMixin:
|
||||
schema_dict: dict[Any, Any] = {
|
||||
vol.Required(CONF_TRIGGER_ENTITY): selector.EntitySelector(
|
||||
selector.EntitySelectorConfig(
|
||||
domain=["sensor", "binary_sensor", "number", "input_number", "input_boolean", "switch"],
|
||||
domain=TRIGGER_ENTITY_DOMAINS,
|
||||
multiple=True,
|
||||
)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user