From ab249a679d099eabce6adfa9f6c06c2d3a97f7c7 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Thu, 9 May 2024 02:33:53 +0200 Subject: [PATCH] Maybe fixing background task for fritz --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 8765c9f..18ce741 100644 --- a/src/main.py +++ b/src/main.py @@ -5,10 +5,10 @@ from endpoints.bettwaage import router as bettwaage_router from endpoints.handlers.fritz import track_network_devices app = FastAPI() +asyncio.create_task(track_network_devices()) app.include_router(hue_router, prefix="/hue", tags=["hue"]) app.include_router(bettwaage_router, prefix="/bettwaage", tags=["bett"]) if __name__ == "__main__": - asyncio.create_task(track_network_devices()) app.run()