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
|
@ -1275,7 +1275,7 @@ class Script:
|
|||
else:
|
||||
config_cache_key = frozenset((k, str(v)) for k, v in config.items())
|
||||
if not (cond := self._config_cache.get(config_cache_key)):
|
||||
cond = await condition.async_from_config(self._hass, config, False)
|
||||
cond = await condition.async_from_config(self._hass, config)
|
||||
self._config_cache[config_cache_key] = cond
|
||||
return cond
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue