mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +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 homeassistant.components.cover import (
|
||||
DEVICE_CLASS_SHADE,
|
||||
SUPPORT_CLOSE,
|
||||
SUPPORT_CLOSE_TILT,
|
||||
SUPPORT_OPEN,
|
||||
SUPPORT_OPEN_TILT,
|
||||
SUPPORT_STOP,
|
||||
SUPPORT_STOP_TILT,
|
||||
CoverDeviceClass,
|
||||
CoverEntity,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
@ -47,7 +47,7 @@ async def async_setup_entry(
|
||||
class BondCover(BondEntity, CoverEntity):
|
||||
"""Representation of a Bond cover."""
|
||||
|
||||
_attr_device_class = DEVICE_CLASS_SHADE
|
||||
_attr_device_class = CoverDeviceClass.SHADE
|
||||
|
||||
def __init__(
|
||||
self, hub: BondHub, device: BondDevice, bpup_subs: BPUPSubscriptions
|
||||
|
Loading…
x
Reference in New Issue
Block a user