Fix regression in Tuya cover is_closed logic (#61303)

This commit is contained in:
Yehuda Davis 2021-12-09 02:40:45 -05:00 committed by GitHub
parent d7756efe55
commit f4f13b7074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -297,7 +297,7 @@ class TuyaCoverEntity(TuyaEntity, CoverEntity):
is not None
):
return self.entity_description.current_state_inverse is not (
current_state in (False, "fully_close")
current_state in (True, "fully_close")
)
if (position := self.current_cover_position) is not None: