diff --git a/plugin.py b/plugin.py index 20b419a..c5f8fd2 100755 --- a/plugin.py +++ b/plugin.py @@ -4,7 +4,7 @@ # #pylint: disable=line-too-long,broad-exception-caught,possibly-used-before-assignment """ - +

Heatzy Pilote


Implementation of Heatzy Pilote as a Domoticz Plugin.
@@ -294,14 +294,16 @@ class BasePlugin: self.retry = self.retry - 1 if self.retry < self.max_retry//2: - Domoticz.Error("Cannot open connection to Heatzy API to get the mode: " + str(exc)) + Domoticz.Error(f"Cannot open connection to Heatzy API to get the mode for {alias}: {exc}") #Domoticz.Error("URL: " + str(url)) #Domoticz.Error("Headers: " + str(headers)) if 'response' in locals() and response != "": Domoticz.Error("Response: " + str(response)) + else: + Domoticz.Debug(f"Cannot open connection to Heatzy API to get the mode for {alias}: {exc}") return - Domoticz.Debug("Get Mode Response:" + str(response)) + Domoticz.Debug(f"Get Mode Response for {alias}: {response}") #Last Update if 'updated_at' in response: