mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
xiaomi_aqara: Fix covers never being closed (#11319)
Bug in equality testing
This commit is contained in:
parent
54b4142530
commit
05926b1994
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user