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