Skip to content

Commit 1d8378c

Browse files
committed
Don't pop available_schedules, set to empty list
1 parent 9bf43cc commit 1d8378c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/components/plugwise/test_climate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ async def test_anna_climate_entity_climate_changes(
436436
)
437437

438438
data = mock_smile_anna.async_update.return_value
439-
data["3cb70739631c4d17a86b8b12e8a5161b"].pop("available_schedules")
439+
data["3cb70739631c4d17a86b8b12e8a5161b"]["available_schedules"] = []
440+
data["3cb70739631c4d17a86b8b12e8a5161b"]["select_schedule"] = None
440441
data["3cb70739631c4d17a86b8b12e8a5161b"]["climate_mode"] = "heat_cool"
441442
with patch(HA_PLUGWISE_SMILE_ASYNC_UPDATE, return_value=data):
442443
freezer.tick(timedelta(minutes=1))

0 commit comments

Comments
 (0)