Bugfix schedule assigned to wrong day of week (#43676)

This commit is contained in:
David Bonnes 2020-11-27 08:20:20 +00:00 committed by GitHub
parent bf4e6a289a
commit c2cc605343
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -635,7 +635,7 @@ class EvoChild(EvoDevice):
return {} # no schedule {'DailySchedules': []}, so no scheduled setpoints
day_time = dt_util.now()
day_of_week = int(day_time.strftime("%w")) # 0 is Sunday
day_of_week = day_time.weekday() # for evohome, 0 is Monday
time_of_day = day_time.strftime("%H:%M:%S")
try: