mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix script default trace (#48390)
This commit is contained in:
parent
387e166447
commit
63e3012380
@ -737,7 +737,7 @@ class _ScriptRun:
|
|||||||
|
|
||||||
if choose_data["default"]:
|
if choose_data["default"]:
|
||||||
trace_set_result(choice="default")
|
trace_set_result(choice="default")
|
||||||
with trace_path(["default", "sequence"]):
|
with trace_path(["default"]):
|
||||||
await self._async_run_script(choose_data["default"])
|
await self._async_run_script(choose_data["default"])
|
||||||
|
|
||||||
async def _async_wait_for_trigger_step(self):
|
async def _async_wait_for_trigger_step(self):
|
||||||
|
@ -2059,7 +2059,7 @@ async def test_choose(hass, caplog, var, result):
|
|||||||
{"result": {"event": "test_event", "event_data": {"choice": "second"}}}
|
{"result": {"event": "test_event", "event_data": {"choice": "second"}}}
|
||||||
]
|
]
|
||||||
if var == 3:
|
if var == 3:
|
||||||
expected_trace["0/default/sequence/0"] = [
|
expected_trace["0/default/0"] = [
|
||||||
{"result": {"event": "test_event", "event_data": {"choice": "default"}}}
|
{"result": {"event": "test_event", "event_data": {"choice": "default"}}}
|
||||||
]
|
]
|
||||||
assert_action_trace(expected_trace)
|
assert_action_trace(expected_trace)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user