mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Time condition can also accept an input_datetime Entity ID (#39676)
This commit is contained in:
@@ -956,8 +956,8 @@ TIME_CONDITION_SCHEMA = vol.All(
|
||||
vol.Schema(
|
||||
{
|
||||
vol.Required(CONF_CONDITION): "time",
|
||||
"before": time,
|
||||
"after": time,
|
||||
"before": vol.Any(time, vol.All(str, entity_domain("input_datetime"))),
|
||||
"after": vol.Any(time, vol.All(str, entity_domain("input_datetime"))),
|
||||
"weekday": weekdays,
|
||||
}
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user