From d7f5510da53810b3d4c53493124dfd37f5f6f314 Mon Sep 17 00:00:00 2001 From: Patrick Pichon Date: Sat, 11 Nov 2023 11:21:55 +0100 Subject: [PATCH] check that the device entry exist in Domoticz Devices, before reading it --- Modules/domoMaj.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/domoMaj.py b/Modules/domoMaj.py index 248006fb7..0a5e20399 100644 --- a/Modules/domoMaj.py +++ b/Modules/domoMaj.py @@ -124,7 +124,9 @@ def MajDomoDevice(self, Devices, NWKID, Ep, clusterID, value, Attribute_="", Col else: self.log.logging( "Widget", "Error", "WidgetID %s not found, unable to remove the entry from device" % WidgetId, NWKID) continue - + elif DeviceUnit not in Devices: + continue + Switchtype = Devices[DeviceUnit].SwitchType Subtype = Devices[DeviceUnit].SubType