Remove unsupported stop feature with Hunter Douglas Powerview 1.0 Hubs (#36129)
This commit is contained in:
parent
1f3d3c3e5b
commit
73fa617c1d
1 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ from .const import (
|
||||||
DEVICE_INFO,
|
DEVICE_INFO,
|
||||||
DEVICE_MODEL,
|
DEVICE_MODEL,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
|
LEGACY_DEVICE_MODEL,
|
||||||
PV_API,
|
PV_API,
|
||||||
PV_ROOM_DATA,
|
PV_ROOM_DATA,
|
||||||
PV_SHADE_DATA,
|
PV_SHADE_DATA,
|
||||||
|
@ -118,7 +119,7 @@ class PowerViewShade(ShadeEntity, CoverEntity):
|
||||||
def supported_features(self):
|
def supported_features(self):
|
||||||
"""Flag supported features."""
|
"""Flag supported features."""
|
||||||
supported_features = SUPPORT_OPEN | SUPPORT_CLOSE | SUPPORT_SET_POSITION
|
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
|
supported_features |= SUPPORT_STOP
|
||||||
return supported_features
|
return supported_features
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue