From 6ec66e4e9ad8e8be877bec38e6e188c9408969fd Mon Sep 17 00:00:00 2001 From: Fabio Souto Date: Tue, 23 Jul 2019 19:57:10 +0100 Subject: [PATCH 1/2] Expose horizontal and vertical swing properties in AC state --- wideq/ac.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wideq/ac.py b/wideq/ac.py index b88cde8..8ab96a3 100644 --- a/wideq/ac.py +++ b/wideq/ac.py @@ -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')) From 8d389029811666781c97c31eb23ae55127d149b4 Mon Sep 17 00:00:00 2001 From: Fabio Souto Date: Tue, 23 Jul 2019 20:02:02 +0100 Subject: [PATCH 2/2] Version bump: v1.1.1 --- wideq/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wideq/__init__.py b/wideq/__init__.py index c425b2e..5e6d480 100644 --- a/wideq/__init__.py +++ b/wideq/__init__.py @@ -4,4 +4,4 @@ from .client import * # noqa from .ac import * # noqa -__version__ = '1.1.0' +__version__ = '1.1.1'