Skip to content

Commit

Permalink
com
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Apr 6, 2024
1 parent b127ed9 commit 3165454
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import contextlib
import datetime
import logging
from collections import OrderedDict
from copy import deepcopy
from random import randint
from typing import Any
Expand Down Expand Up @@ -1352,8 +1353,10 @@ def mock_area_registry(
if year >= 2024 and month >= 3:
area_kwargs["icon"] = None
area_kwargs["floor_id"] = "test-floor"
registry.areas = ar.AreaRegistryItems()
else:
registry.areas = OrderedDict()
area = ar.AreaEntry(**area_kwargs)
registry.areas = ar.AreaRegistryItems()
registry.areas[area.id] = area
hass.data[ar.DATA_REGISTRY] = registry
return registry
Expand Down

0 comments on commit 3165454

Please sign in to comment.