From 0d9d03ce4d2abdb86dc7c8913e6e5b5775373bdf Mon Sep 17 00:00:00 2001 From: Francois JUMELLE Date: Sun, 17 Nov 2024 17:30:09 +0100 Subject: [PATCH] Support multiple devices --- plugin.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugin.py b/plugin.py index 9404433..58cb0cb 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.
@@ -41,9 +41,6 @@ if None is not None: #Fake statement to remove warning on global Domoticz variab Images = Images # type: ignore #NOSONAR #pylint: disable=undefined-variable,self-assigning-variable Devices = Devices # type: ignore #NOSONAR #pylint: disable=undefined-variable,self-assigning-variable -global Parameters -global Devices - HEATZY_MODE = { '停止': 'OFF', '解冻': 'FROSTFREE', @@ -335,7 +332,7 @@ class BasePlugin: elif 'attr' in response and len(response["attr"]) == 0: #attr is empty... Domoticz.Status("We force a setMode to try to get the correct mode at the next try...") - self.setMode(HEATZY_MODE_VALUE['FROSTFREE']) + self.set_mode(HEATZY_MODE_VALUE['FROSTFREE']) return "" return mode