Improve displaying of message for reset retry

This commit is contained in:
2025-11-02 20:18:23 +01:00
parent 81030f7ddc
commit a9bcf978c9

View File

@@ -4,7 +4,7 @@
# #
#pylint: disable=line-too-long,broad-exception-caught,possibly-used-before-assignment #pylint: disable=line-too-long,broad-exception-caught,possibly-used-before-assignment
""" """
<plugin key="HeatzyEx" name="Heatzy Pilote Ex" author="fjumelle" version="2.2.1" wikilink="" externallink=""> <plugin key="HeatzyEx" name="Heatzy Pilote Ex" author="fjumelle" version="2.2.2" wikilink="" externallink="">
<description> <description>
<h2>Heatzy Pilote</h2><br/> <h2>Heatzy Pilote</h2><br/>
Implementation of Heatzy Pilote as a Domoticz Plugin.<br/> Implementation of Heatzy Pilote as a Domoticz Plugin.<br/>
@@ -457,8 +457,9 @@ class BasePlugin:
def reset_retry(self): def reset_retry(self):
"""Reset the retry counter""" """Reset the retry counter"""
Domoticz.Status("Reset retry counter") if self.retry != self._MAX_RETRY_PER_DEVICE * len(self.did):
self.retry = self._MAX_RETRY_PER_DEVICE * len(self.did) Domoticz.Status("Reset retry counter")
self.retry = self._MAX_RETRY_PER_DEVICE * len(self.did)
_plugin = BasePlugin() _plugin = BasePlugin()