Fix test_light_switch_in_specific_area (#1225)

This commit is contained in:
Bas Nijholt 2025-06-15 22:12:48 -07:00 committed by GitHub
commit cb67a4cb9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1373,6 +1373,9 @@ def mock_area_registry(
area_kwargs["floor_id"] = "test-floor"
if dt >= datetime.date(2024, 11, 1):
area_kwargs.pop("normalized_name")
if dt >= datetime.date(2025, 2, 1):
area_kwargs["humidity_entity_id"] = None
area_kwargs["temperature_entity_id"] = None
# This mess... 🤯
if dt >= datetime.date(2024, 2, 1) and dt != datetime.date(2024, 4, 1):