feat: Make notifier and program async

Using asyncio library, notification are now trigerred
asynchronously.
This commit is contained in:
kbe
2025-07-21 20:29:44 +02:00
parent 3a378c03a6
commit d71bfff10e
3 changed files with 83 additions and 8 deletions

View File

@@ -2,6 +2,7 @@
import logging
import traceback
import asyncio
from crossfit_booker import CrossFitBooker
if __name__ == "__main__":
@@ -30,5 +31,5 @@ if __name__ == "__main__":
exit(1)
# Start the continuous booking loop
booker.run()
asyncio.run(booker.run())
logging.info("Script completed")