mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Consider 95% as closed for Motion blinds venetian blinds (#84872)
This commit is contained in:
parent
7da434f455
commit
46166160fe
@ -352,6 +352,13 @@ class MotionTiltDevice(MotionPositionDevice):
|
|||||||
return None
|
return None
|
||||||
return self._blind.angle * 100 / 180
|
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:
|
async def async_open_cover_tilt(self, **kwargs: Any) -> None:
|
||||||
"""Open the cover tilt."""
|
"""Open the cover tilt."""
|
||||||
async with self._api_lock:
|
async with self._api_lock:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user