diff --git a/homeassistant/components/logbook/__init__.py b/homeassistant/components/logbook/__init__.py index 35fa17bb3a4f2..549518e875a94 100644 --- a/homeassistant/components/logbook/__init__.py +++ b/homeassistant/components/logbook/__init__.py @@ -271,7 +271,7 @@ async def ws_get_events( return if start_time > utc_now: - connection.send_result(msg["id"], {}) + connection.send_result(msg["id"], []) return entity_ids = msg.get("entity_ids") diff --git a/tests/components/logbook/test_init.py b/tests/components/logbook/test_init.py index ed95b4d10bcdd..dddbbc611340d 100644 --- a/tests/components/logbook/test_init.py +++ b/tests/components/logbook/test_init.py @@ -2391,6 +2391,7 @@ async def test_get_events_future_start_time(hass, hass_ws_client, recorder_mock) assert response["id"] == 1 results = response["result"] + assert isinstance(results, list) assert len(results) == 0