Skip to content

Commit

Permalink
fi
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Apr 6, 2024
1 parent 85c23d2 commit 97a5b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1351,9 +1351,9 @@ def mock_area_registry(
year, month = (int(x) for x in ha_version.split(".")[:2])
if year <= 2022 and month <= 12:
area_kwargs["aliases"] = {}
elif year >= 2024 and month >= 2:
elif year >= 2024 and month == 2:
area_kwargs["icon"] = None
elif year >= 2024 and month >= 3:
elif year >= 2024 and month >= 3 and month:
area_kwargs["icon"] = None
area_kwargs["floor_id"] = "test-floor"
registry.areas = ar.AreaRegistryItems()
Expand Down

0 comments on commit 97a5b8f

Please sign in to comment.