1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Wrap shorthand template conditions during schema validation (#62485)

This commit is contained in:
Erik Montnemery
2021-12-21 17:20:15 +01:00
committed by GitHub
parent 6d1c4a4f5f
commit e48f567176
3 changed files with 17 additions and 17 deletions

View File

@@ -262,7 +262,7 @@ async def async_validate_action_config(
config = platform.ACTION_SCHEMA(config) # type: ignore
elif action_type == cv.SCRIPT_ACTION_CHECK_CONDITION:
config = await condition.async_validate_condition_config(hass, config) # type: ignore
config = await condition.async_validate_condition_config(hass, config)
elif action_type == cv.SCRIPT_ACTION_WAIT_FOR_TRIGGER:
config[CONF_WAIT_FOR_TRIGGER] = await async_validate_trigger_config(