We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946affd commit 88c7dd7Copy full SHA for 88c7dd7
plugwise/__init__.py
@@ -617,7 +617,7 @@ async def set_schedule_state(
617
if new_state not in ["on", "off"]:
618
raise PlugwiseError("Plugwise: invalid schedule state.")
619
if name is None:
620
- for device in self.gw_devices:
+ for device in self.gw_devices.values():
621
if device["location"] == loc_id and device["last_used"]:
622
name = device["last_used"]
623
else:
0 commit comments