doorstate: reduce logging output

Remove unnecessary output

Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
Ralf Ramsauer 2019-07-07 23:03:24 +02:00
parent c8503f46e8
commit 71e55ec523
1 changed files with 1 additions and 7 deletions

View File

@ -52,8 +52,6 @@ class AudioPlayer(Thread):
self._event.set()
def run(self):
print('Run')
while not self._shutdown:
self._event.wait(1)
@ -144,13 +142,9 @@ while True:
if ev_line:
event = line.event_read()
door_open = event.type == gpiod.LineEvent.RISING_EDGE
print('door_open: %s' % door_open)
publish_doorstate()
print('Loop: door_open: %s' % door_open)
print('Loop: is_locked: %s' % is_locked)
print('Loop: door_alarm_set: %s' % door_alarm_set)
print()
# Door State stuff
if is_locked is not None:
if is_locked is False: