mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Allow number/sensor entities in numeric state conditions/triggers (#51439)
This commit is contained in:
@@ -926,7 +926,7 @@ SERVICE_SCHEMA = vol.All(
|
||||
)
|
||||
|
||||
NUMERIC_STATE_THRESHOLD_SCHEMA = vol.Any(
|
||||
vol.Coerce(float), vol.All(str, entity_domain("input_number"))
|
||||
vol.Coerce(float), vol.All(str, entity_domain(["input_number", "number", "sensor"]))
|
||||
)
|
||||
|
||||
CONDITION_BASE_SCHEMA = {vol.Optional(CONF_ALIAS): string}
|
||||
|
||||
Reference in New Issue
Block a user