mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Bugfix schedule assigned to wrong day of week (#43676)
This commit is contained in:
parent
bf4e6a289a
commit
c2cc605343
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user