Motion_blinds fix up button not available for unidirection blinds (#57266)

This commit is contained in:
starkillerOG
2021-10-07 22:27:48 +02:00
committed by GitHub
parent be61009030
commit cd1a71b070

View File

@@ -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):