Skip to content

Commit f168fd5

Browse files
committed
Fix resetting state
1 parent 7e97295 commit f168fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymyq/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,6 @@ async def wait_for_state(
158158
# Reset self.state ensuring it reflects actual device state. Only do this if state is still what it would
159159
# have been, this to ensure if something else had updated it to something else we don't override.
160160
if self._device_state == current_state:
161-
self.state = None
161+
self._device_state = None
162162

163163
return self.state in new_state

0 commit comments

Comments
 (0)