xiaomi_aqara: Fix covers never being closed (#11319)

Bug in equality testing
This commit is contained in:
Conrad Juhl Andersen 2017-12-26 23:35:48 +01:00 committed by Daniel Høyer Iversen
parent 54b4142530
commit 05926b1994

View File

@ -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."""