- create bool expression
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user