mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Use new CoverDeviceClass in bond (#61322)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
2e65923205
commit
a63900a5a8
@ -6,13 +6,13 @@ from typing import Any
|
|||||||
from bond_api import Action, BPUPSubscriptions, DeviceType
|
from bond_api import Action, BPUPSubscriptions, DeviceType
|
||||||
|
|
||||||
from homeassistant.components.cover import (
|
from homeassistant.components.cover import (
|
||||||
DEVICE_CLASS_SHADE,
|
|
||||||
SUPPORT_CLOSE,
|
SUPPORT_CLOSE,
|
||||||
SUPPORT_CLOSE_TILT,
|
SUPPORT_CLOSE_TILT,
|
||||||
SUPPORT_OPEN,
|
SUPPORT_OPEN,
|
||||||
SUPPORT_OPEN_TILT,
|
SUPPORT_OPEN_TILT,
|
||||||
SUPPORT_STOP,
|
SUPPORT_STOP,
|
||||||
SUPPORT_STOP_TILT,
|
SUPPORT_STOP_TILT,
|
||||||
|
CoverDeviceClass,
|
||||||
CoverEntity,
|
CoverEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
@ -47,7 +47,7 @@ async def async_setup_entry(
|
|||||||
class BondCover(BondEntity, CoverEntity):
|
class BondCover(BondEntity, CoverEntity):
|
||||||
"""Representation of a Bond cover."""
|
"""Representation of a Bond cover."""
|
||||||
|
|
||||||
_attr_device_class = DEVICE_CLASS_SHADE
|
_attr_device_class = CoverDeviceClass.SHADE
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, hub: BondHub, device: BondDevice, bpup_subs: BPUPSubscriptions
|
self, hub: BondHub, device: BondDevice, bpup_subs: BPUPSubscriptions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user