Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
FIX 0 is not returned for the orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
tetienne committed Dec 28, 2018
1 parent 4cc2424 commit a8340fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,5 +1,6 @@
### Next release
* Use get_state method to get blind orientation
* Set 0 as orientation when not available for the blind
### 0.4.3
* Token can now be fetch using the code instead of the full authorization response
### 0.4.2
Expand Down
2 changes: 1 addition & 1 deletion pymfy/api/devices/blind.py
Expand Up @@ -7,7 +7,7 @@ class Blind(RollerShutter):

@property
def orientation(self) -> int:
return self.get_state('orientation')
return self.get_state('orientation') or 0

@orientation.setter
def orientation(self, value: int) -> None:
Expand Down

0 comments on commit a8340fc

Please sign in to comment.