From cd1a71b0706294f7e30ce8fdc435d68b48772de1 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Thu, 7 Oct 2021 22:27:48 +0200 Subject: [PATCH] Motion_blinds fix up button not available for unidirection blinds (#57266) --- homeassistant/components/motion_blinds/cover.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/motion_blinds/cover.py b/homeassistant/components/motion_blinds/cover.py index c96dff93e67..16e5255240c 100644 --- a/homeassistant/components/motion_blinds/cover.py +++ b/homeassistant/components/motion_blinds/cover.py @@ -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):