Remove str from cover device class (#83396)

* Remove str from cover device class

* Fix tests
This commit is contained in:
Franck Nijhof 2022-12-06 16:13:29 +01:00 committed by GitHub
parent ba0d6fe611
commit c507ad86d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 18 deletions

View file

@ -99,7 +99,7 @@ class NetatmoCover(NetatmoBase, CoverEntity):
await self._cover.async_set_target_position(kwargs[ATTR_POSITION])
@property
def device_class(self) -> str:
def device_class(self) -> CoverDeviceClass:
"""Return the device class."""
return CoverDeviceClass.SHUTTER