Use DEVICE_CLASS_WINDOW constant in various integrations (#39949)

This commit is contained in:
springstan authored and GitHub committed 2020-09-11 21:24:23 -05:00
1 parent a6d3ee90f0
commit f93c0c5cd3
7 files changed
+32 -14

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
"""Support for deCONZ covers."""
from homeassistant.components.cover import (
ATTR_POSITION,
DEVICE_CLASS_WINDOW,
SUPPORT_CLOSE,
SUPPORT_OPEN,
SUPPORT_SET_POSITION,
@@ -74,7 +75,7 @@ class DeconzCover(DeconzDevice, CoverEntity):
if self._device.type in DAMPERS:
return "damper"
if self._device.type in WINDOW_COVERS:
return "window"
return DEVICE_CLASS_WINDOW
@property
def supported_features(self):