From 289124b7f8c6929656f500ff5aab19b4595fec76 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sun, 23 Aug 2026 14:22:39 +0200 Subject: [PATCH] Change State when microwave state is Idel --- micro_ondes/esp_lora/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/micro_ondes/esp_lora/main.py b/micro_ondes/esp_lora/main.py index 10465b6..1ddede2 100644 --- a/micro_ondes/esp_lora/main.py +++ b/micro_ondes/esp_lora/main.py @@ -344,6 +344,9 @@ async def lora_process_task(): microwave_state = new_state if new_state not in (MicrowaveState.ALERT): # Not alert so we can show the error update_screen() + if new_state == MicrowaveState.IDLE: + cooking_state = None + await asyncio.sleep_ms(20) await asyncio.sleep_ms(100)