From a3510ffe8f84d59c1f0a2d570cb5b165a2ee756d Mon Sep 17 00:00:00 2001 From: jens Date: Thu, 17 Dec 2020 21:57:02 +0100 Subject: [PATCH] - hendi: remote enable on activate --- components/actor/heater_hendi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/actor/heater_hendi.py b/components/actor/heater_hendi.py index 220efcb..e7671e6 100644 --- a/components/actor/heater_hendi.py +++ b/components/actor/heater_hendi.py @@ -20,12 +20,13 @@ class HeaterHendi(AHeater): def activate(self, enable): self.is_active = enable - if enable: + if not self.hendi.isRemoteEnable(): self.hendi.remoteEnable(1) + + if enable: self.hendi.setSwitch(1) else: self.hendi.setSwitch(0) - self.hendi.remoteEnable(0) def is_activated(self): s = self.hendi.getSwitch()