- hendi: remote enable on activate
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user