Fixed climate logger not starting
This commit is contained in:
parent
de66a88fda
commit
31072baf97
1 changed files with 4 additions and 4 deletions
|
@ -18,9 +18,13 @@ from handler.history import get_recent_entries
|
|||
|
||||
logging.getLogger().setLevel(logging.INFO)
|
||||
|
||||
|
||||
# Start services
|
||||
asyncio.create_task(log_temperature())
|
||||
queue = ActionQueue(matrix_display.show_current_time)
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
origins = [
|
||||
"http://localhost",
|
||||
"http://localhost:8000",
|
||||
|
@ -115,7 +119,3 @@ async def display_message(body: dict):
|
|||
message_text = body.get("message")
|
||||
await queue.add_action_to_queue(matrix_display.show_text, message_text)
|
||||
return {"message": "Message displayed"}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
asyncio.create_task(log_temperature())
|
||||
|
|
Loading…
Reference in a new issue