1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 18:34:25 +01:00

NukiBridge.py, Doorlock.py: Remove print statements

Remove some debug print statements or convert it to log.debug()
Signed-off-by: Thomas Schmid <tom@lfence.de>
This commit is contained in:
Thomas 2022-11-17 18:45:32 +01:00
parent e6e5c271db
commit 530b324602
2 changed files with 1 additions and 2 deletions

View File

@ -128,7 +128,6 @@ class DoorHandler:
self.run_hooks = cfg.boolean('RUN_HOOKS') self.run_hooks = cfg.boolean('RUN_HOOKS')
backend_type = cfg.str("BACKEND_TYPE", "backend") backend_type = cfg.str("BACKEND_TYPE", "backend")
print(backend_type)
if not backend_type: if not backend_type:
log.error("No backend configured") log.error("No backend configured")
raise RuntimeError() raise RuntimeError()

View File

@ -113,7 +113,7 @@ class NukiBridge(DoorlockBackend):
continue continue
self.current_state = state self.current_state = state
print(state) log.debug(f"Nuki reported state: {state}")
time.sleep(10) time.sleep(10)
def set_state(self, state): def set_state(self, state):