Fix HA websocket state change handling

This commit is contained in:
2026-06-15 18:15:14 +02:00
parent 5727053951
commit 3140f65527
6 changed files with 20 additions and 7 deletions

View File

@@ -55,7 +55,7 @@ def test_ha_event_listener_processes_state_change(tmp_path: Path) -> None:
'{"type":"auth_ok"}',
(
'{"type":"event","event":{"event_type":"state_changed",'
'"entity_id":"light.test","new_state":{"state":"on"}}}'
'"data":{"entity_id":"light.test","new_state":{"state":"on"}}}}'
),
asyncio.CancelledError(),
]