diff --git a/main.py b/main.py index a2b8c84..78c50fe 100755 --- a/main.py +++ b/main.py @@ -115,5 +115,4 @@ def on_exit() -> None: with sia as s: logger.info("Waiting for events...") - while True: - sleep(500) + mqtt.loop_forever()