From 3d9008104bf2f3a8fd573cd31820e5b3b770d259 Mon Sep 17 00:00:00 2001 From: Pipiche <8291674+pipiche38@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:30:11 +0100 Subject: [PATCH] Update plugin.py --- plugin.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index f94f5b7db..a912353c0 100644 --- a/plugin.py +++ b/plugin.py @@ -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 @@ -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")