Skip to content

Commit

Permalink
.4
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Apr 6, 2024
1 parent 97a5b8f commit a044938
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1353,10 +1353,18 @@ def mock_area_registry(
area_kwargs["aliases"] = {}
elif year >= 2024 and month == 2:
area_kwargs["icon"] = None
elif year >= 2024 and month >= 3 and month:
elif year >= 2024 and month == 3:
area_kwargs["icon"] = None
area_kwargs["floor_id"] = "test-floor"
registry.areas = ar.AreaRegistryItems()
elif year >= 2024 and month >= 4:
from homeassistant.helpers.normalized_name_base_registry import (
NormalizedNameBaseRegistryItems,
)

area_kwargs["icon"] = None
area_kwargs["floor_id"] = "test-floor"
registry.areas = NormalizedNameBaseRegistryItems[ar.AreaEntry]
else:
registry.areas = OrderedDict()
area = ar.AreaEntry(**area_kwargs)
Expand Down

0 comments on commit a044938

Please sign in to comment.