Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
thermostats climate setting schedules blocked by no 'climate_setting_…
Browse files Browse the repository at this point in the history
…schedules
  • Loading branch information
kainpets committed Nov 17, 2023
1 parent bab4bdb commit 1d67a22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/thermostats/test_climate_setting_schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
import datetime

def add_month_to_date(date: datetime.date, months: int) -> datetime.date:
return datetime.datetime(date.year + int(date.month / 12), ((date.month % 12) + months), 1)
year = date.year + (date.month + months - 1) // 12
month = (date.month + months - 1) % 12 + 1
return datetime.date(year, month, 1)

# Blocked by: AttributeError: 'Thermostats' object has no attribute 'climate_setting_schedules'
def test_climate_setting_schedules(seam: Seam):
run_nest_factory(seam)

thermostat = seam.thermostats.list()[0]

base_date = datetime.date.today()
Expand Down

0 comments on commit 1d67a22

Please sign in to comment.