Fix implicit-return in vera (#122934)

This commit is contained in:
epenet 2024-07-31 14:53:05 +02:00 committed by GitHub
parent e706ff0564
commit 2f181cbe41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,10 +61,11 @@ class VeraCover(VeraDevice[veraApi.VeraCurtain], CoverEntity):
self.schedule_update_ha_state()
@property
def is_closed(self) -> bool:
def is_closed(self) -> bool | None:
"""Return if the cover is closed."""
if self.current_cover_position is not None:
return self.current_cover_position == 0
return None
def open_cover(self, **kwargs: Any) -> None:
"""Open the cover."""