1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Make sure empty get_events results is always a list (#72021)

This commit is contained in:
Paulus Schoutsen
2022-05-17 10:43:58 -07:00
committed by GitHub
parent 8f4caf4141
commit 5433c0a535
2 changed files with 2 additions and 1 deletions

View File

@@ -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