Use new CoverDeviceClass enum in brunt (#61328)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2021-12-09 09:18:20 +01:00 committed by GitHub
parent 4818872591
commit 172591031d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,10 +10,10 @@ from brunt import BruntClientAsync, Thing
from homeassistant.components.cover import (
ATTR_POSITION,
DEVICE_CLASS_SHADE,
SUPPORT_CLOSE,
SUPPORT_OPEN,
SUPPORT_SET_POSITION,
CoverDeviceClass,
CoverEntity,
)
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
@ -101,7 +101,7 @@ class BruntDevice(CoordinatorEntity, CoverEntity):
self._remove_update_listener = None
self._attr_name = self._thing.NAME
self._attr_device_class = DEVICE_CLASS_SHADE
self._attr_device_class = CoverDeviceClass.SHADE
self._attr_supported_features = COVER_FEATURES
self._attr_attribution = ATTRIBUTION
self._attr_device_info = DeviceInfo(