From be985698a0ae3be7dc9ffe9bd295744378eb7746 Mon Sep 17 00:00:00 2001 From: Francois JUMELLE Date: Sun, 2 Nov 2025 22:42:03 +0100 Subject: [PATCH] Fix trigger of error message --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 64524f5..0fe8766 100755 --- a/plugin.py +++ b/plugin.py @@ -296,7 +296,7 @@ class BasePlugin: response = requests.get(url, headers=headers, timeout=self._HTTP_TIMEOUT).json() except Exception as exc: message = f"Cannot open connection to Heatzy API to get the mode for {alias} (retry={self.retry}): {exc}" - if self.retry < 0: + if self.retry <= 0: Domoticz.Error(message) else: Domoticz.Status(message + f" (retry left: {self.retry})")