diff --git a/tasks/heater.py b/tasks/heater.py index 21b44be..43f2846 100644 --- a/tasks/heater.py +++ b/tasks/heater.py @@ -30,7 +30,7 @@ class HeaterTask(ATask): if 'Power' in pair[0]: self.power_soll = pair[1] if 'Activate' in pair[0]: - self.heater.activate(bool(pair[1])) + self.heater.activate(pair[1] == 1) async def send(self, data): await self.msg_handler.send(data) diff --git a/tasks/stirrer.py b/tasks/stirrer.py index d3ebf3c..fa0d81c 100644 --- a/tasks/stirrer.py +++ b/tasks/stirrer.py @@ -29,7 +29,7 @@ class StirrerTask(ATask): if 'Speed' in pair[0]: self.device.set_speed(pair[1]) if 'Activate' in pair[0]: - self.device.activate(bool(pair[1])) + self.device.activate(pair[1] == 1) async def send(self, data): await self.msg_handler.send(data)