forked from home-assistant/core
Motion_blinds fix up button not available for unidirection blinds (#57266)
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user