Validate generated condition (#27263)
This commit is contained in:
parent
0915d927df
commit
5d1dd6390d
5 changed files with 12 additions and 16 deletions
|
@ -21,7 +21,7 @@ def async_condition_from_config(
|
|||
"""Evaluate state based on configuration."""
|
||||
if config_validation:
|
||||
config = CONDITION_SCHEMA(config)
|
||||
return toggle_entity.async_condition_from_config(config, config_validation)
|
||||
return toggle_entity.async_condition_from_config(config)
|
||||
|
||||
|
||||
async def async_get_conditions(hass: HomeAssistant, device_id: str) -> List[dict]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue