When I use your plugin together with the UniFi plugin, I get these errors a couple of times per day:
EPS - Homebridge Buddy Error Error in plugin execution ServerRemovedElem:
Traceback (most recent call last):
File "plugin.py", line 4967, in variableDeleted
File "plugin.py", line 4967, in variableDeleted
File "plugin.py", line 4967, in variableDeleted
...
---8<--- that line repeats and repeats and repeats until ---
...
File "plugin.py", line 4967, in variableDeleted
File "plugin.py", line 4967, in variableDeleted
File "plugin.py", line 4967, in variableDeleted
RuntimeError: maximum recursion depth exceeded
I looked into plugin.py and noticed these lines around line 4967:
- Code: Select all
################################################################################
# INDIGO VARIABLE EVENTS
################################################################################
# Basic comm events
def variableCreated(self, var): return eps.plug.variableCreated(var)
def variableUpdated (self, origVar, newVar): return eps.plug.variableUpdated (origVar, newVar)
def variableDeleted(self, var): return self.variableDeleted(var)
The last line is actually line 4967 and it returns self.variableDeleted.
Changed that to return eps.plug.variableDeleted and the errors are gone.