diff --git a/homeassistant/components/velux/cover.py b/homeassistant/components/velux/cover.py index 3c1b6ecb1eb..68e25f7a61f 100644 --- a/homeassistant/components/velux/cover.py +++ b/homeassistant/components/velux/cover.py @@ -60,7 +60,16 @@ class VeluxCover(CoverDevice): @property def device_class(self): - """Define this cover as a window.""" + """Define this cover as either window/blind/awning/shutter.""" + from pyvlx.opening_device import Blind, RollerShutter, Window, Awning + if isinstance(self.node, Window): + return 'window' + if isinstance(self.node, Blind): + return 'blind' + if isinstance(self.node, RollerShutter): + return 'shutter' + if isinstance(self.node, Awning): + return 'awning' return 'window' @property