Skip to content

Commit e5945a6

Browse files
committed
Adam: store last_active when turning a schedule off
1 parent a8917f3 commit e5945a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugwise/smile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ async def set_schedule_state(self, loc_id: str, name: str, state: str) -> bool:
531531
subject = etree.fromstring(subject)
532532

533533
if state == "off":
534+
self._last_active[loc_id] = name
534535
contexts.remove(subject)
535536
if state == "on":
536537
contexts.append(subject)

0 commit comments

Comments
 (0)