mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Use new enums in smarthab (#62208)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
779ce6216c
commit
b0cfc76add
@ -7,10 +7,10 @@ from requests.exceptions import Timeout
|
||||
|
||||
from homeassistant.components.cover import (
|
||||
ATTR_POSITION,
|
||||
DEVICE_CLASS_WINDOW,
|
||||
SUPPORT_CLOSE,
|
||||
SUPPORT_OPEN,
|
||||
SUPPORT_SET_POSITION,
|
||||
CoverDeviceClass,
|
||||
CoverEntity,
|
||||
)
|
||||
|
||||
@ -37,7 +37,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
class SmartHabCover(CoverEntity):
|
||||
"""Representation a cover."""
|
||||
|
||||
_attr_device_class = DEVICE_CLASS_WINDOW
|
||||
_attr_device_class = CoverDeviceClass.WINDOW
|
||||
|
||||
def __init__(self, cover):
|
||||
"""Initialize a SmartHabCover."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user