diff --git a/plugin.py b/plugin.py index e8c618a..f06acc6 100755 --- a/plugin.py +++ b/plugin.py @@ -302,7 +302,7 @@ class BasePlugin: Domoticz.Error("Response: " + str(response)) else: Domoticz.Debug(f"Cannot open connection to Heatzy API to get the mode for {alias}: {exc}") - return + continue Domoticz.Debug(f"Get Mode Response for {alias}: {response}") @@ -314,7 +314,7 @@ class BasePlugin: if obsolete_min >= 180 and Devices[deviceid].TimedOut == 0: Domoticz.Status(f"Last update from '{alias}' was {obsolete_min} min earlier.") Devices[deviceid].TimedOut = 1 - return + continue device["updated_at"] = response["updated_at"] if Devices[deviceid].TimedOut == 1: @@ -364,7 +364,7 @@ class BasePlugin: #attr is empty... Domoticz.Status("We force a setMode to try to get the correct mode at the next try...") self.set_mode(deviceid, HEATZY_MODE_VALUE['FROSTFREE']) - return + continue # If mode = OFF and bug, then mode = FROSTFREE if self.bug and mode == 'OFF':