Remove optional validation when creating conditions (#60481)

This commit is contained in:
Erik Montnemery 2021-11-28 14:54:07 +01:00 committed by GitHub
parent 76b047dd12
commit caf5ee2fab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 486 additions and 580 deletions

View file

@ -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