Add support for Velux garage doors ()

* Update manifest.json

* Update cover.py

Add GarageDoor

* Update to pyvlx 0.2.12

* Sort
pull/30326/head
Christian 2019-12-31 15:17:17 +01:00 committed by springstan
parent 609bf445f0
commit fd0375ac20
3 changed files with 5 additions and 3 deletions
homeassistant/components/velux

View File

@ -1,6 +1,6 @@
"""Support for Velux covers."""
from pyvlx import OpeningDevice, Position
from pyvlx.opening_device import Awning, Blind, RollerShutter, Window
from pyvlx.opening_device import Awning, Blind, GarageDoor, RollerShutter, Window
from homeassistant.components.cover import (
ATTR_POSITION,
@ -77,6 +77,8 @@ class VeluxCover(CoverDevice):
return "shutter"
if isinstance(self.node, Awning):
return "awning"
if isinstance(self.node, GarageDoor):
return "garage"
return "window"
@property

View File

@ -3,7 +3,7 @@
"name": "Velux",
"documentation": "https://www.home-assistant.io/integrations/velux",
"requirements": [
"pyvlx==0.2.11"
"pyvlx==0.2.12"
],
"dependencies": [],
"codeowners": [

View File

@ -1692,7 +1692,7 @@ pyvesync==1.1.0
pyvizio==0.0.7
# homeassistant.components.velux
pyvlx==0.2.11
pyvlx==0.2.12
# homeassistant.components.html5
pywebpush==1.9.2