Change State when microwave state is Idel
This commit is contained in:
@@ -344,6 +344,9 @@ async def lora_process_task():
|
|||||||
microwave_state = new_state
|
microwave_state = new_state
|
||||||
if new_state not in (MicrowaveState.ALERT): # Not alert so we can show the error
|
if new_state not in (MicrowaveState.ALERT): # Not alert so we can show the error
|
||||||
update_screen()
|
update_screen()
|
||||||
|
if new_state == MicrowaveState.IDLE:
|
||||||
|
cooking_state = None
|
||||||
|
await asyncio.sleep_ms(20)
|
||||||
|
|
||||||
await asyncio.sleep_ms(100)
|
await asyncio.sleep_ms(100)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user