From f252f8fe95a03fd449f438eb7a62bd0dae9642a5 Mon Sep 17 00:00:00 2001 From: Niklas Sombert Date: Thu, 1 Dec 2022 15:45:14 +0100 Subject: [PATCH] Call the mqtt loop --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()