Skip to content

Commit 88c7dd7

Browse files
committed
Iterate through gw_devices.values()
1 parent 946affd commit 88c7dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ async def set_schedule_state(
617617
if new_state not in ["on", "off"]:
618618
raise PlugwiseError("Plugwise: invalid schedule state.")
619619
if name is None:
620-
for device in self.gw_devices:
620+
for device in self.gw_devices.values():
621621
if device["location"] == loc_id and device["last_used"]:
622622
name = device["last_used"]
623623
else:

0 commit comments

Comments
 (0)