Adjust parallel trace for frontend handling
This commit is contained in:
parent
3f7c6a1ba7
commit
4a7644c562
2 changed files with 5 additions and 5 deletions
|
@ -988,7 +988,7 @@ class _ScriptRun:
|
|||
async def async_run_with_trace(idx: int, script: Script) -> None:
|
||||
"""Run a script with a trace path."""
|
||||
trace_path_stack_cv.set(copy(trace_path_stack_cv.get()))
|
||||
with trace_path([str(idx), "sequence"]):
|
||||
with trace_path([str(idx)]):
|
||||
await self._async_run_script(script)
|
||||
|
||||
results = await asyncio.gather(
|
||||
|
|
|
@ -3012,7 +3012,7 @@ async def test_parallel(hass: HomeAssistant, caplog: pytest.LogCaptureFixture) -
|
|||
|
||||
expected_trace = {
|
||||
"0": [{"result": {}}],
|
||||
"0/parallel/0/sequence/0": [
|
||||
"0/parallel/0/0": [
|
||||
{
|
||||
"result": {
|
||||
"wait": {
|
||||
|
@ -3025,7 +3025,7 @@ async def test_parallel(hass: HomeAssistant, caplog: pytest.LogCaptureFixture) -
|
|||
}
|
||||
}
|
||||
],
|
||||
"0/parallel/1/sequence/0": [
|
||||
"0/parallel/1/0": [
|
||||
{
|
||||
"variables": {"wait": {"remaining": None}},
|
||||
"result": {
|
||||
|
@ -3034,7 +3034,7 @@ async def test_parallel(hass: HomeAssistant, caplog: pytest.LogCaptureFixture) -
|
|||
},
|
||||
}
|
||||
],
|
||||
"0/parallel/0/sequence/1": [
|
||||
"0/parallel/0/1": [
|
||||
{
|
||||
"variables": {"wait": {"remaining": None}},
|
||||
"result": {
|
||||
|
@ -3068,7 +3068,7 @@ async def test_parallel_error(
|
|||
|
||||
expected_trace = {
|
||||
"0": [{"error_type": ServiceNotFound, "result": {}}],
|
||||
"0/parallel/0/sequence/0": [
|
||||
"0/parallel/0/0": [
|
||||
{
|
||||
"error_type": ServiceNotFound,
|
||||
"result": {
|
||||
|
|
Loading…
Add table
Reference in a new issue