Remove unsupported stop feature with Hunter Douglas Powerview 1.0 Hubs (#36129)

This commit is contained in:
J. Nick Koston 2020-05-25 10:51:46 -05:00 committed by GitHub
parent 1f3d3c3e5b
commit 73fa617c1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,6 +28,7 @@ from .const import (
DEVICE_INFO,
DEVICE_MODEL,
DOMAIN,
LEGACY_DEVICE_MODEL,
PV_API,
PV_ROOM_DATA,
PV_SHADE_DATA,
@ -118,7 +119,7 @@ class PowerViewShade(ShadeEntity, CoverEntity):
def supported_features(self):
"""Flag supported features."""
supported_features = SUPPORT_OPEN | SUPPORT_CLOSE | SUPPORT_SET_POSITION
if self._device_info[DEVICE_MODEL] != "1":
if self._device_info[DEVICE_MODEL] != LEGACY_DEVICE_MODEL:
supported_features |= SUPPORT_STOP
return supported_features