Accept microwaves state IDLE

This commit is contained in:
2026-08-23 12:51:05 +02:00
parent 178457e199
commit c130566156
+1 -1
View File
@@ -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