Use new enums in supla (#62406)

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/62412/head
epenet 2021-12-20 17:38:31 +01:00 committed by GitHub
parent 5251c1b934
commit bea1fbb4aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -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