From f591737c77b73b028ab75d0e7167954e451d9323 Mon Sep 17 00:00:00 2001 From: Felix Rotthowe Date: Wed, 21 Feb 2024 07:31:27 +0000 Subject: [PATCH] device_ids is a list, nor a set... what a stupid bug! --- custom_components/livisi/livisi_connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/livisi/livisi_connector.py b/custom_components/livisi/livisi_connector.py index 98ad883..a170bfb 100644 --- a/custom_components/livisi/livisi_connector.py +++ b/custom_components/livisi/livisi_connector.py @@ -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)