Maybe fixing background task for fritz
This commit is contained in:
parent
a32ad26d0b
commit
ab249a679d
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue