1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-27 20:40:18 -07:00

Merge pull request #40 from fabiomsouto/master

Expose horizontal swing and vertical swing properties in AC state
This commit is contained in:
Fábio Souto 2019-07-23 20:05:53 +01:00 committed by GitHub
commit 4e54149a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -4,4 +4,4 @@ from .core import * # noqa
from .client import * # noqa
from .ac import * # noqa
__version__ = '1.1.0'
__version__ = '1.1.1'

View File

@ -294,6 +294,14 @@ class ACStatus(object):
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'))