From fd0375ac204c3ebfc8304d7a57b662e257af41ec Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 31 Dec 2019 15:17:17 +0100 Subject: [PATCH] Add support for Velux garage doors (#30214) * Update manifest.json * Update cover.py Add GarageDoor * Update to pyvlx 0.2.12 * Sort --- homeassistant/components/velux/cover.py | 4 +++- homeassistant/components/velux/manifest.json | 2 +- requirements_all.txt | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/velux/cover.py b/homeassistant/components/velux/cover.py index 7d4adc7350c..c9b4aa53fe5 100644 --- a/homeassistant/components/velux/cover.py +++ b/homeassistant/components/velux/cover.py @@ -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 diff --git a/homeassistant/components/velux/manifest.json b/homeassistant/components/velux/manifest.json index 783e23a8171..d2fbb3b728a 100644 --- a/homeassistant/components/velux/manifest.json +++ b/homeassistant/components/velux/manifest.json @@ -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": [ diff --git a/requirements_all.txt b/requirements_all.txt index 15cc43e5356..0e163221d11 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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