mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Use new enums in supla (#62406)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
5251c1b934
commit
bea1fbb4aa
@ -2,11 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
from pprint import pformat
|
from pprint import pformat
|
||||||
|
|
||||||
from homeassistant.components.cover import (
|
from homeassistant.components.cover import ATTR_POSITION, CoverDeviceClass, CoverEntity
|
||||||
ATTR_POSITION,
|
|
||||||
DEVICE_CLASS_GARAGE,
|
|
||||||
CoverEntity,
|
|
||||||
)
|
|
||||||
|
|
||||||
from . import DOMAIN, SUPLA_COORDINATORS, SUPLA_SERVERS, SuplaChannel
|
from . import DOMAIN, SUPLA_COORDINATORS, SUPLA_SERVERS, SuplaChannel
|
||||||
|
|
||||||
@ -115,4 +111,4 @@ class SuplaGateDoor(SuplaChannel, CoverEntity):
|
|||||||
@property
|
@property
|
||||||
def device_class(self):
|
def device_class(self):
|
||||||
"""Return the class of this device, from component DEVICE_CLASSES."""
|
"""Return the class of this device, from component DEVICE_CLASSES."""
|
||||||
return DEVICE_CLASS_GARAGE
|
return CoverDeviceClass.GARAGE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user