fix: add type 54 vertical blind support and remove spurious battery_charging control lock
This commit is contained in:
@@ -110,9 +110,7 @@ class PowerViewCover(PassiveBluetoothCoordinatorEntity[PVCoordinator], CoverEnti
|
||||
@property
|
||||
def supported_features(self) -> CoverEntityFeature: # type: ignore[reportIncompatibleVariableOverride]
|
||||
"""Flag supported features, disable control if encryption is needed."""
|
||||
if (
|
||||
self._coord.data.get("home_id") and not self._coord.api.has_key
|
||||
) or self._coord.data.get("battery_charging"):
|
||||
if self._coord.data.get("home_id") and not self._coord.api.has_key:
|
||||
return CoverEntityFeature(0)
|
||||
|
||||
return super().supported_features
|
||||
|
||||
Reference in New Issue
Block a user