Indicate disabled steps in script trace (#71237)

This commit is contained in:
Franck Nijhof 2022-05-03 13:04:59 +02:00 committed by GitHub
parent 71248bcbce
commit 99360ad7f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -439,6 +439,7 @@ class _ScriptRun:
self._log(
"Skipped disabled step %s", self._action.get(CONF_ALIAS, action)
)
trace_set_result(enabled=False)
return
try:

View file

@ -4939,8 +4939,8 @@ async def test_disabled_actions(
assert_action_trace(
{
"0": [{"result": {"event": "test_event", "event_data": {}}}],
"1": [{}],
"2": [{}],
"1": [{"result": {"enabled": False}}],
"2": [{"result": {"enabled": False}}],
"3": [{"result": {"event": "test_event", "event_data": {}}}],
},
)