mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 16:06:01 +01:00
Use new enums in supla (#62406)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -2,11 +2,7 @@
|
||||
import logging
|
||||
from pprint import pformat
|
||||
|
||||
from homeassistant.components.cover import (
|
||||
ATTR_POSITION,
|
||||
DEVICE_CLASS_GARAGE,
|
||||
CoverEntity,
|
||||
)
|
||||
from homeassistant.components.cover import ATTR_POSITION, CoverDeviceClass, CoverEntity
|
||||
|
||||
from . import DOMAIN, SUPLA_COORDINATORS, SUPLA_SERVERS, SuplaChannel
|
||||
|
||||
@@ -115,4 +111,4 @@ class SuplaGateDoor(SuplaChannel, CoverEntity):
|
||||
@property
|
||||
def device_class(self):
|
||||
"""Return the class of this device, from component DEVICE_CLASSES."""
|
||||
return DEVICE_CLASS_GARAGE
|
||||
return CoverDeviceClass.GARAGE
|
||||
|
||||
Reference in New Issue
Block a user