mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Use new CoverDeviceClass enum in aladdin_connect (#61262)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
c1a09d2bac
commit
e460eec134
@ -8,8 +8,8 @@ from aladdin_connect import AladdinConnectClient
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.cover import (
|
from homeassistant.components.cover import (
|
||||||
DEVICE_CLASS_GARAGE,
|
|
||||||
PLATFORM_SCHEMA as BASE_PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA as BASE_PLATFORM_SCHEMA,
|
||||||
|
CoverDeviceClass,
|
||||||
CoverEntity,
|
CoverEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
@ -65,7 +65,7 @@ def setup_platform(
|
|||||||
class AladdinDevice(CoverEntity):
|
class AladdinDevice(CoverEntity):
|
||||||
"""Representation of Aladdin Connect cover."""
|
"""Representation of Aladdin Connect cover."""
|
||||||
|
|
||||||
_attr_device_class = DEVICE_CLASS_GARAGE
|
_attr_device_class = CoverDeviceClass.GARAGE
|
||||||
_attr_supported_features = SUPPORTED_FEATURES
|
_attr_supported_features = SUPPORTED_FEATURES
|
||||||
|
|
||||||
def __init__(self, acc: AladdinConnectClient, device: DoorDevice) -> None:
|
def __init__(self, acc: AladdinConnectClient, device: DoorDevice) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user