xiaomi_aqara: Fix covers never being closed (#11319)

Bug in equality testing
This commit is contained in:
Conrad Juhl Andersen authored and Daniel Høyer Iversen committed 2017-12-26 23:35:48 +01:00
1 parent 54b4142530
commit 05926b1994
1 file changed
+1 -1
@@ -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."""