diff --git a/homeassistant/components/cover/tahoma.py b/homeassistant/components/cover/tahoma.py index a4159721de7..fd2b5847292 100644 --- a/homeassistant/components/cover/tahoma.py +++ b/homeassistant/components/cover/tahoma.py @@ -62,6 +62,14 @@ class TahomaCover(TahomaDevice, CoverDevice): if self.current_cover_position is not None: return self.current_cover_position == 0 + @property + def device_class(self): + """Return the class of the device.""" + if self.tahoma_device.type == 'io:WindowOpenerVeluxIOComponent': + return 'window' + else: + return None + def open_cover(self, **kwargs): """Open the cover.""" self.apply_action('open') @@ -77,10 +85,3 @@ class TahomaCover(TahomaDevice, CoverDevice): self.apply_action('setPosition', 'secured') else: self.apply_action('stopIdentify') - - def device_class(self): - """Return the class of this device, from component DEVICE_CLASSES.""" - if self.tahoma_device.type == 'io:WindowOpenerVeluxIOComponent': - return 'window' - else: - return None