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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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(