You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Airly sensor connection fails plugin will never update Domoticz since we set variable self.inProgress = True and never change it to False.
Proposed fix in function OnHeartbeat around line 360:
except SensorNotFoundException as snfe:
self.inProgress = False
Domoticz.Error(("Sensor id (%(sensor_id)d) not exists") % {'sensor_id': int(Parameters["Mode2"])})
except UnauthorizedException as ue:
self.inProgress = False
Domoticz.Error(("Not authorized"))
As you can see I added "self.inProgress = False" when exception is caught.
The text was updated successfully, but these errors were encountered:
If Airly sensor connection fails plugin will never update Domoticz since we set variable self.inProgress = True and never change it to False.
Proposed fix in function OnHeartbeat around line 360:
except SensorNotFoundException as snfe:
self.inProgress = False
Domoticz.Error(("Sensor id (%(sensor_id)d) not exists") % {'sensor_id': int(Parameters["Mode2"])})
except UnauthorizedException as ue:
self.inProgress = False
Domoticz.Error(("Not authorized"))
As you can see I added "self.inProgress = False" when exception is caught.
The text was updated successfully, but these errors were encountered: