mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Motion_blinds fix up button not available for unidirection blinds (#57266)
This commit is contained in:
parent
be61009030
commit
cd1a71b070
@ -171,6 +171,8 @@ class MotionPositionDevice(CoordinatorEntity, CoverEntity):
|
||||
@property
|
||||
def is_closed(self):
|
||||
"""Return if the cover is closed or not."""
|
||||
if self._blind.position is None:
|
||||
return None
|
||||
return self._blind.position == 100
|
||||
|
||||
async def async_added_to_hass(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user