Consider 95% as closed for Motion blinds venetian blinds (#84872)

This commit is contained in:
starkillerOG 2023-01-02 14:12:36 +01:00 committed by GitHub
parent 7da434f455
commit 46166160fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,6 +352,13 @@ class MotionTiltDevice(MotionPositionDevice):
return None
return self._blind.angle * 100 / 180
@property
def is_closed(self) -> bool | None:
"""Return if the cover is closed or not."""
if self._blind.position is None:
return None
return self._blind.position >= 95
async def async_open_cover_tilt(self, **kwargs: Any) -> None:
"""Open the cover tilt."""
async with self._api_lock: