Skip to content

Commit

Permalink
When device is disabled, make sure to set the CheckParam flag to False
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Mar 18, 2024
1 parent 1a829b1 commit 1893410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/heartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,7 @@ def processListOfDevices(self, Devices):

if "Param" in self.ListOfDevices[NWKID] and "Disabled" in self.ListOfDevices[NWKID]["Param"]:
if self.ListOfDevices[NWKID]["Param"]["Disabled"] and self.ListOfDevices[NWKID]["Health"] == "Disabled":
self.ListOfDevices[NWKID]["CheckParam"] = False
continue

if not self.ListOfDevices[NWKID]["Param"]["Disabled"] and self.ListOfDevices[NWKID]["Health"] == "Disabled":
Expand Down

0 comments on commit 1893410

Please sign in to comment.