From 05926b1994f2c068d45547b338fc48714f1ff98f Mon Sep 17 00:00:00 2001 From: Conrad Juhl Andersen Date: Tue, 26 Dec 2017 23:35:48 +0100 Subject: [PATCH] xiaomi_aqara: Fix covers never being closed (#11319) Bug in equality testing --- homeassistant/components/cover/xiaomi_aqara.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/cover/xiaomi_aqara.py b/homeassistant/components/cover/xiaomi_aqara.py index 17d056a5010..5b51371346b 100644 --- a/homeassistant/components/cover/xiaomi_aqara.py +++ b/homeassistant/components/cover/xiaomi_aqara.py @@ -41,7 +41,7 @@ class XiaomiGenericCover(XiaomiDevice, CoverDevice): @property def is_closed(self): """Return if the cover is closed.""" - return self.current_cover_position < 0 + return self.current_cover_position <= 0 def close_cover(self, **kwargs): """Close the cover."""