Bug in function variableDeleted in version 1.0.6?

Posted on
Mon Jun 04, 2018 1:57 pm
macpro offline
User avatar
Posts: 693
Joined: Dec 29, 2005
Location: Third byte on the right

Bug in function variableDeleted in version 1.0.6?

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.

"I tawt I taw a puddy tat!" Tweety

Posted on
Mon Jun 04, 2018 2:21 pm
durosity offline
User avatar
Posts: 3680
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Bug in function variableDeleted in version 1.0.6?

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

Computer says no.

Posted on
Mon Jun 04, 2018 5:01 pm
Colorado4Wheeler offline
User avatar
Posts: 2755
Joined: Jul 20, 2009
Location: Colorado

Re: Bug in function variableDeleted in version 1.0.6?

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) :).

My Modest Contributions to Indigo:

HomeKit Bridge | Device Extensions | Security Manager | LCD Creator | Room-O-Matic | Smart Dimmer | Scene Toggle | Powermiser | Homebridge Buddy

Check Them Out Here

Posted on
Tue Jun 05, 2018 7:30 am
durosity offline
User avatar
Posts: 3680
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Bug in function variableDeleted in version 1.0.6?

Oops that’s what’s I meant to say. I get confused


Sent from my iPhone using Tapatalk

Computer says no.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests