Use new enums in deconz (#61343)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
2e99fbc1f3
commit
fa38a2d0bf
4 changed files with 34 additions and 47 deletions
|
@ -10,8 +10,6 @@ from pydeconz.light import Cover
|
|||
from homeassistant.components.cover import (
|
||||
ATTR_POSITION,
|
||||
ATTR_TILT_POSITION,
|
||||
DEVICE_CLASS_DAMPER,
|
||||
DEVICE_CLASS_SHADE,
|
||||
DOMAIN,
|
||||
SUPPORT_CLOSE,
|
||||
SUPPORT_CLOSE_TILT,
|
||||
|
@ -21,6 +19,7 @@ from homeassistant.components.cover import (
|
|||
SUPPORT_SET_TILT_POSITION,
|
||||
SUPPORT_STOP,
|
||||
SUPPORT_STOP_TILT,
|
||||
CoverDeviceClass,
|
||||
CoverEntity,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
|
@ -32,9 +31,9 @@ from .deconz_device import DeconzDevice
|
|||
from .gateway import DeconzGateway, get_gateway_from_config_entry
|
||||
|
||||
DEVICE_CLASS = {
|
||||
"Level controllable output": DEVICE_CLASS_DAMPER,
|
||||
"Window covering controller": DEVICE_CLASS_SHADE,
|
||||
"Window covering device": DEVICE_CLASS_SHADE,
|
||||
"Level controllable output": CoverDeviceClass.DAMPER,
|
||||
"Window covering controller": CoverDeviceClass.SHADE,
|
||||
"Window covering device": CoverDeviceClass.SHADE,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue