From bea1fbb4aa4e19d8a599ffb11ed06934244fe9f2 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 20 Dec 2021 17:38:31 +0100 Subject: [PATCH] Use new enums in supla (#62406) Co-authored-by: epenet --- homeassistant/components/supla/cover.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/supla/cover.py b/homeassistant/components/supla/cover.py index c76b28e9de0..0c6715e3728 100644 --- a/homeassistant/components/supla/cover.py +++ b/homeassistant/components/supla/cover.py @@ -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