mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +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"]:
|
||||
trace_set_result(choice="default")
|
||||
with trace_path(["default", "sequence"]):
|
||||
with trace_path(["default"]):
|
||||
await self._async_run_script(choose_data["default"])
|
||||
|
||||
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"}}}
|
||||
]
|
||||
if var == 3:
|
||||
expected_trace["0/default/sequence/0"] = [
|
||||
expected_trace["0/default/0"] = [
|
||||
{"result": {"event": "test_event", "event_data": {"choice": "default"}}}
|
||||
]
|
||||
assert_action_trace(expected_trace)
|
||||
|
Loading…
x
Reference in New Issue
Block a user