mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +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
|
@property
|
||||||
def is_closed(self):
|
def is_closed(self):
|
||||||
"""Return if the cover is closed."""
|
"""Return if the cover is closed."""
|
||||||
return self.current_cover_position < 0
|
return self.current_cover_position <= 0
|
||||||
|
|
||||||
def close_cover(self, **kwargs):
|
def close_cover(self, **kwargs):
|
||||||
"""Close the cover."""
|
"""Close the cover."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user