From 6a1f3f1117ea64a136abc5ee84392e71c2911d66 Mon Sep 17 00:00:00 2001 From: dfournie <45941998+dfournie@users.noreply.github.com> Date: Fri, 17 Apr 2020 20:49:33 +0200 Subject: [PATCH] Add support for DEXXO SMART io Garage Opener (#27704) * Add support for DEXXO SMART io Garage Opener * Add support for DEXXO SMART io Garage Opener * Update with with latest release 0.108.5 * Update with release 0.108.5 * Remove empty lines * Fix code formatting --- homeassistant/components/tahoma/__init__.py | 1 + homeassistant/components/tahoma/cover.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/homeassistant/components/tahoma/__init__.py b/homeassistant/components/tahoma/__init__.py index f14e3019ac0..1e1bbd31eae 100644 --- a/homeassistant/components/tahoma/__init__.py +++ b/homeassistant/components/tahoma/__init__.py @@ -37,6 +37,7 @@ TAHOMA_TYPES = { "io:AwningValanceIOComponent": "cover", "io:ExteriorVenetianBlindIOComponent": "cover", "io:DiscreteGarageOpenerIOComponent": "cover", + "io:DiscreteGarageOpenerWithPartialPositionIOComponent": "cover", "io:HorizontalAwningIOComponent": "cover", "io:GarageOpenerIOComponent": "cover", "io:LightIOSystemSensor": "sensor", diff --git a/homeassistant/components/tahoma/cover.py b/homeassistant/components/tahoma/cover.py index 7692e9bedf7..e13f9bb8859 100644 --- a/homeassistant/components/tahoma/cover.py +++ b/homeassistant/components/tahoma/cover.py @@ -30,6 +30,7 @@ HORIZONTAL_AWNING = "io:HorizontalAwningIOComponent" TAHOMA_DEVICE_CLASSES = { HORIZONTAL_AWNING: DEVICE_CLASS_AWNING, "io:AwningValanceIOComponent": DEVICE_CLASS_AWNING, + "io:DiscreteGarageOpenerWithPartialPositionIOComponent": DEVICE_CLASS_GARAGE, "io:DiscreteGarageOpenerIOComponent": DEVICE_CLASS_GARAGE, "io:ExteriorVenetianBlindIOComponent": DEVICE_CLASS_BLIND, "io:GarageOpenerIOComponent": DEVICE_CLASS_GARAGE, @@ -155,6 +156,11 @@ class TahomaCover(TahomaDevice, CoverDevice): self._closed = ( self.tahoma_device.active_states["core:OpenClosedState"] == "closed" ) + if "core:OpenClosedPartialState" in self.tahoma_device.active_states: + self._closed = ( + self.tahoma_device.active_states["core:OpenClosedPartialState"] + == "closed" + ) else: self._closed = False