From c13056615699b3e6fc5e490a62640ec84df9ef2d Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sun, 23 Aug 2026 12:51:05 +0200 Subject: [PATCH] Accept microwaves state IDLE --- micro_ondes/esp_lora/lib/microwaveScreen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micro_ondes/esp_lora/lib/microwaveScreen.py b/micro_ondes/esp_lora/lib/microwaveScreen.py index 7e2238a..de51134 100644 --- a/micro_ondes/esp_lora/lib/microwaveScreen.py +++ b/micro_ondes/esp_lora/lib/microwaveScreen.py @@ -80,7 +80,7 @@ class MicrowaveScreen: # self.lastUpdateTime = time.time() # Not Used right now - if (not microwave_state or microwave_state == MicrowaveState.DONE) and (not cooking_state or cooking_state.state == CookingStates.IDLE): # Is not currently cooking + if (not microwave_state or microwave_state in (MicrowaveState.DONE, MicrowaveState.IDLE)) and (not cooking_state or cooking_state.state == CookingStates.IDLE): # Is not currently cooking self.h_centered_text("Ready !", 28, 1) else: # Screen center