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()