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')
backend_type = cfg.str("BACKEND_TYPE", "backend")
print(backend_type)
if not backend_type:
log.error("No backend configured")
raise RuntimeError()

View File

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