mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Use new CoverDeviceClass enum in brunt (#61328)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
4818872591
commit
172591031d
@ -10,10 +10,10 @@ from brunt import BruntClientAsync, Thing
|
|||||||
|
|
||||||
from homeassistant.components.cover import (
|
from homeassistant.components.cover import (
|
||||||
ATTR_POSITION,
|
ATTR_POSITION,
|
||||||
DEVICE_CLASS_SHADE,
|
|
||||||
SUPPORT_CLOSE,
|
SUPPORT_CLOSE,
|
||||||
SUPPORT_OPEN,
|
SUPPORT_OPEN,
|
||||||
SUPPORT_SET_POSITION,
|
SUPPORT_SET_POSITION,
|
||||||
|
CoverDeviceClass,
|
||||||
CoverEntity,
|
CoverEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
||||||
@ -101,7 +101,7 @@ class BruntDevice(CoordinatorEntity, CoverEntity):
|
|||||||
self._remove_update_listener = None
|
self._remove_update_listener = None
|
||||||
|
|
||||||
self._attr_name = self._thing.NAME
|
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_supported_features = COVER_FEATURES
|
||||||
self._attr_attribution = ATTRIBUTION
|
self._attr_attribution = ATTRIBUTION
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user