Allow numeric state trigger/condition against zone entities (#114221)

This commit is contained in:
Franck Nijhof 2024-03-26 19:41:46 +01:00 committed by GitHub
parent e1036b3af0
commit 9a1906322b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1350,7 +1350,8 @@ SERVICE_SCHEMA = vol.All(
)
NUMERIC_STATE_THRESHOLD_SCHEMA = vol.Any(
vol.Coerce(float), vol.All(str, entity_domain(["input_number", "number", "sensor"]))
vol.Coerce(float),
vol.All(str, entity_domain(["input_number", "number", "sensor", "zone"])),
)
CONDITION_BASE_SCHEMA = {