Page 1 of 1

Bug in function variableDeleted in version 1.0.6?

PostPosted: Mon Jun 04, 2018 1:57 pm
by macpro
I'm running version 1.0.6 which I downloaded from GitHub.
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.

Re: Bug in function variableDeleted in version 1.0.6?

PostPosted: Mon Jun 04, 2018 2:21 pm
by durosity
Just FYI if you’re interested you might want to check out HomeKit Bridge, which is effectively the replacement for HKB.


Sent from my iPhone using Tapatalk

Re: Bug in function variableDeleted in version 1.0.6?

PostPosted: Mon Jun 04, 2018 5:01 pm
by Colorado4Wheeler
durosity wrote:
Just FYI if you’re interested you might want to check out HomeKit Bridge, which is effectively the replacement for HKB.


Sent from my iPhone using Tapatalk


This. Except it's the direct replacement for HBB (Homebridge Buddy) and not for HKB (HomeKit Bridge) :).

Re: Bug in function variableDeleted in version 1.0.6?

PostPosted: Tue Jun 05, 2018 7:30 am
by durosity
Oops that’s what’s I meant to say. I get confused


Sent from my iPhone using Tapatalk