Skip to content

Commit

Permalink
Update plugin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 authored Nov 13, 2023
1 parent f0da953 commit 3d90081
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ def __init__(self):

def onStart(self):
Domoticz.Status( "Zigbee for Domoticz plugin starting")

# Enable the cycle detector
# gc.set_debug(gc.DEBUG_SAVEALL)

_current_python_version_major = sys.version_info.major
_current_python_version_minor = sys.version_info.minor

Expand Down Expand Up @@ -731,6 +733,15 @@ def onStop(self): # sourcery skip: class-extract-method
if self.adminWidgets:
self.adminWidgets.updateStatusWidget(Devices, "No Communication")

# objects = gc.get_objects()
# Domoticz.Log( "Garbage Collected objects: %s" %str(objects))

# Print detected cycles (garbage collectors)
# for item in gc.garbage:
# Domoticz.Log(item)



def onDeviceRemoved(self, Unit):
if self.log:
self.log.logging("Plugin", "Debug", "onDeviceRemoved called")
Expand Down

0 comments on commit 3d90081

Please sign in to comment.