Skip to content

Commit

Permalink
prevent readAttribute on FakeEp
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Jan 12, 2025
1 parent 682a4b1 commit 55cffb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Modules/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def getListOfEpForCluster(self, NwkId, SearchCluster):

oldFashion = ( "ClusterType" in self.ListOfDevices[NwkId] and self.ListOfDevices[NwkId]["ClusterType"] not in ({}, "") )
for Ep in list(self.ListOfDevices[NwkId]["Ep"].keys()):
# check that is not a Fake Ep
if is_fake_ep(self, NwkId, Ep):
continue

if SearchCluster not in self.ListOfDevices[NwkId]["Ep"][Ep]:
continue

Expand Down

0 comments on commit 55cffb9

Please sign in to comment.