- hendi: remote enable on activate

This commit is contained in:
jens
2020-12-17 21:53:28 +01:00
parent eb9d7f5159
commit 850ad6c88c
+2
View File
@@ -21,9 +21,11 @@ class HeaterHendi(AHeater):
def activate(self, enable):
self.is_active = enable
if enable:
self.hendi.remoteEnable(1)
self.hendi.setSwitch(1)
else:
self.hendi.setSwitch(0)
self.hendi.remoteEnable(0)
def is_activated(self):
s = self.hendi.getSwitch()