Better retry message

This commit is contained in:
2025-11-02 15:26:46 +01:00
parent b01c09559e
commit c77c76e2fe

View File

@@ -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}")