mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Indicate disabled steps in script trace (#71237)
This commit is contained in:
parent
6301873d89
commit
d69a08bdf9
@ -439,6 +439,7 @@ class _ScriptRun:
|
|||||||
self._log(
|
self._log(
|
||||||
"Skipped disabled step %s", self._action.get(CONF_ALIAS, action)
|
"Skipped disabled step %s", self._action.get(CONF_ALIAS, action)
|
||||||
)
|
)
|
||||||
|
trace_set_result(enabled=False)
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -4939,8 +4939,8 @@ async def test_disabled_actions(
|
|||||||
assert_action_trace(
|
assert_action_trace(
|
||||||
{
|
{
|
||||||
"0": [{"result": {"event": "test_event", "event_data": {}}}],
|
"0": [{"result": {"event": "test_event", "event_data": {}}}],
|
||||||
"1": [{}],
|
"1": [{"result": {"enabled": False}}],
|
||||||
"2": [{}],
|
"2": [{"result": {"enabled": False}}],
|
||||||
"3": [{"result": {"event": "test_event", "event_data": {}}}],
|
"3": [{"result": {"event": "test_event", "event_data": {}}}],
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user