1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 10:24:26 +01:00

doorlockd: minor simplification

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2018-09-08 00:30:16 +02:00
parent d5215ea0fc
commit 4f95021fcf

View File

@ -284,9 +284,6 @@ class DoorHandler:
elif self.state == DoorState.Open: elif self.state == DoorState.Open:
tx = DoorHandler.CMD_OPEN tx = DoorHandler.CMD_OPEN
else: else:
tx = None
if not tx:
continue continue
self.serial.write(tx) self.serial.write(tx)