FlyingDiver wrote:- Code: Select all
def deviceUpdated(self, oldDevice, newDevice):
indigo.PluginBase.deviceUpdated(self, oldDevice, newDevice)
# do something here
I'm not positive that it makes a difference, but you should probably use the
super method to call the plugin's parent class's method:
- Code: Select all
def deviceUpdated(self, oldDevice, newDevice):
super(Plugin, self).deviceUpdated(oldDevice, newDevice)
# do something here
If for no other reason, we might change the base class (or add another one) in the future so to migrate all you'd need to do is change it in the Plugin class definition.