Better retry message
This commit is contained in:
11
plugin.py
11
plugin.py
@@ -299,12 +299,11 @@ class BasePlugin:
|
|||||||
#Decrease retry
|
#Decrease retry
|
||||||
self.retry = self.retry - 1
|
self.retry = self.retry - 1
|
||||||
|
|
||||||
Domoticz.Error(f"Cannot open connection to Heatzy API to get the mode for {alias} (retry={self.retry}): {exc}")
|
message = f"Cannot open connection to Heatzy API to get the mode for {alias} (retry={self.retry}): {exc}"
|
||||||
#Domoticz.Error("URL: " + str(url))
|
if self.retry < 0:
|
||||||
#Domoticz.Error("Headers: " + str(headers))
|
Domoticz.Error(message)
|
||||||
if 'response' in locals() and response != "":
|
else:
|
||||||
Domoticz.Error("Response: " + str(response))
|
Domoticz.Status(message + f" (retry left: {self.retry})")
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
Domoticz.Debug(f"Get Mode Response for {alias}: {response}")
|
Domoticz.Debug(f"Get Mode Response for {alias}: {response}")
|
||||||
|
|||||||
Reference in New Issue
Block a user