Remove optional validation when creating conditions (#60481)
This commit is contained in:
parent
76b047dd12
commit
caf5ee2fab
24 changed files with 486 additions and 580 deletions
|
@ -141,6 +141,7 @@ def async_condition_from_config(config: ConfigType) -> condition.ConditionChecke
|
|||
if CONF_FOR in config:
|
||||
state_config[CONF_FOR] = config[CONF_FOR]
|
||||
|
||||
state_config = cv.STATE_CONDITION_SCHEMA(state_config)
|
||||
return condition.state_from_config(state_config)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue