deCONZ dependency exports type hints (#70449)

This commit is contained in:
Robert Svensson 2022-04-23 07:27:47 +02:00 committed by GitHub
parent a29265e725
commit 678888c65f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 29 additions and 29 deletions

View file

@ -92,7 +92,7 @@ class DeconzCover(DeconzDevice, CoverEntity):
@property
def current_cover_position(self) -> int:
"""Return the current position of the cover."""
return 100 - self._device.lift # type: ignore[no-any-return]
return 100 - self._device.lift
@property
def is_closed(self) -> bool:
@ -120,7 +120,7 @@ class DeconzCover(DeconzDevice, CoverEntity):
def current_cover_tilt_position(self) -> int | None:
"""Return the current tilt position of the cover."""
if self._device.tilt is not None:
return 100 - self._device.tilt # type: ignore[no-any-return]
return 100 - self._device.tilt
return None
async def async_set_cover_tilt_position(self, **kwargs: Any) -> None: