Skip to content

Commit 79339ae

Browse files
authored
Fix sequence block copy-paste (home-assistant#155206)
1 parent df3a4c5 commit 79339ae

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

homeassistant/helpers/config_validation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2011,6 +2011,8 @@ def _base_trigger_validator(value: Any) -> Any:
20112011
_SCRIPT_SEQUENCE_SCHEMA = vol.Schema(
20122012
{
20132013
**SCRIPT_ACTION_BASE_SCHEMA,
2014+
# The frontend stores data here. Don't use in core.
2015+
vol.Remove("metadata"): dict,
20142016
vol.Required(CONF_SEQUENCE): SCRIPT_SCHEMA,
20152017
}
20162018
)

tests/helpers/test_script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3687,6 +3687,7 @@ async def test_sequence(hass: HomeAssistant, caplog: pytest.LogCaptureFixture) -
36873687
},
36883688
},
36893689
],
3690+
"metadata": {"anything": "not used by core"},
36903691
},
36913692
{
36923693
"alias": "action 2",

0 commit comments

Comments
 (0)