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()