Skip to content

Commit cb91019

Browse files
committed
Fix state returned for device
1 parent ab00c2c commit cb91019

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
@@ -78,7 +78,7 @@ def href(self) -> Optional[str]:
7878

7979
@property
8080
def state(self) -> Optional[str]:
81-
return self._device_state if not None else self.device_state
81+
return self._device_state or self.device_state
8282

8383
@state.setter
8484
def state(self, value: str) -> None:

0 commit comments

Comments
 (0)