Use short handle attributes for device class in netatmo cover (#100228)

This commit is contained in:
J. Nick Koston 2023-09-12 13:34:50 -05:00 committed by GitHub
parent 693a271e40
commit cc252f705f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."""