mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 14:24:03 +02:00
Fix test_light_switch_in_specific_area (#1225)
This commit is contained in:
parent
5f02e9de75
commit
cb67a4cb9c
1 changed files with 3 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue