Maybe fixing background task for fritz

This commit is contained in:
Maximilian Giller 2024-05-09 02:33:53 +02:00
parent a32ad26d0b
commit ab249a679d

View file

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