Skip to content

Commit

Permalink
device_ids is a list, nor a set... what a stupid bug!
Browse files Browse the repository at this point in the history
  • Loading branch information
planbnet committed Feb 21, 2024
1 parent 7e2d2b1 commit f591737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/livisi/livisi_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def parse_messages(self, messages):
]
if len(device_ids) == 0:
source = message.get("source", SHC_ID)
device_ids.add(source.replace("/device/", ""))
device_ids = [source.replace("/device/", "")]
if msgtype == "DeviceLowBattery":
for device_id in device_ids:
low_battery_devices.add(device_id)
Expand Down

0 comments on commit f591737

Please sign in to comment.