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") % {'sensorid': 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.
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") % {'sensorid': 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.