Add support for Velux garage doors (#30214)
* Update manifest.json * Update cover.py Add GarageDoor * Update to pyvlx 0.2.12 * Sortpull/30326/head
parent
609bf445f0
commit
fd0375ac20
homeassistant/components/velux
|
@ -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
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue