mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
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
This commit is contained in:
parent
1c6e92c45b
commit
6a1f3f1117
@ -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",
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user