diff --git a/homeassistant/components/netatmo/cover.py b/homeassistant/components/netatmo/cover.py index 41bf84c8334..2e4bf9e7d3c 100644 --- a/homeassistant/components/netatmo/cover.py +++ b/homeassistant/components/netatmo/cover.py @@ -51,6 +51,7 @@ class NetatmoCover(NetatmoBase, CoverEntity): | CoverEntityFeature.STOP | CoverEntityFeature.SET_POSITION ) + _attr_device_class = CoverDeviceClass.SHUTTER def __init__(self, netatmo_device: NetatmoDevice) -> None: """Initialize the Netatmo device.""" @@ -98,11 +99,6 @@ class NetatmoCover(NetatmoBase, CoverEntity): """Move the cover shutter to a specific position.""" await self._cover.async_set_target_position(kwargs[ATTR_POSITION]) - @property - def device_class(self) -> CoverDeviceClass: - """Return the device class.""" - return CoverDeviceClass.SHUTTER - @callback def async_update_callback(self) -> None: """Update the entity's state."""