This commit is contained in:
Lynn Ochs 2022-11-14 19:36:43 +01:00
parent a0f164d176
commit e856fffaf5

View File

@ -123,7 +123,7 @@ class DoorControlSocket(util.Loggable):
self._bell._protocol.send_light_msg() self._bell._protocol.send_light_msg()
elif cmd == 'bell_perma_light': elif cmd == 'bell_perma_light':
self._bell._protocol.doing_light ^= True self._bell._protocol.doing_light ^= True
send("Turning the light on permanently: {self._bell._protocol.doing_light}") send(f"Turning the light on permanently: {self._bell._protocol.doing_light}")
elif cmd == 'bell_raw': elif cmd == 'bell_raw':
if (len(args) % 4) != 0: if (len(args) % 4) != 0:
send(f"Invalid number of bytes: {len(args)}") send(f"Invalid number of bytes: {len(args)}")