Fix microwave not resetting
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user