From 46166160fead0b07858268a6bc5b986859050289 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Mon, 2 Jan 2023 14:12:36 +0100 Subject: [PATCH] Consider 95% as closed for Motion blinds venetian blinds (#84872) --- homeassistant/components/motion_blinds/cover.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/components/motion_blinds/cover.py b/homeassistant/components/motion_blinds/cover.py index e0d02750d6d..53ee4f5b561 100644 --- a/homeassistant/components/motion_blinds/cover.py +++ b/homeassistant/components/motion_blinds/cover.py @@ -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: