Skip to content

Commit

Permalink
Merge pull request #40 from fabiomsouto/master
Browse files Browse the repository at this point in the history
Expose horizontal swing and vertical swing properties in AC state
  • Loading branch information
fabiomsouto authored Jul 23, 2019
2 parents 4d4410a + 497fe71 commit 4e54149
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wideq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from .client import * # noqa
from .ac import * # noqa

__version__ = '1.1.0'
__version__ = '1.1.1'
8 changes: 8 additions & 0 deletions wideq/ac.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,14 @@ def mode(self):
def fan_speed(self):
return ACFanSpeed(self.lookup_enum('WindStrength'))

@property
def horz_swing(self):
return ACHSwingMode(self.lookup_enum('WDirHStep'))

@property
def vert_swing(self):
return ACVSwingMode(self.lookup_enum('WDirVStep'))

@property
def is_on(self):
op = ACOp(self.lookup_enum('Operation'))
Expand Down

0 comments on commit 4e54149

Please sign in to comment.