Skip to content

Commit

Permalink
check that the device entry exist in Domoticz Devices, before reading it
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Nov 11, 2023
1 parent 9381523 commit d7f5510
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/domoMaj.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d7f5510

Please sign in to comment.