Fix microwave not resetting

This commit is contained in:
2026-08-16 16:28:51 +02:00
parent c6e56b58a0
commit 9b0ecf944a
+2
View File
@@ -62,6 +62,8 @@ class MicrowaveState:
), "Invalid cooking state: " + str(new_cooking_state)
if self.cooking_state != new_cooking_state:
if self.cooking_state == CookingStates.COOKING and new_cooking_state == CookingStates.DONE:
self.set_state(MicrowaveState.DONE)
self.cooking_state = new_cooking_state
self._notify_change(MicrowaveStateFields.COOKING_STATE)