deCONZ dependency exports type hints (#70449)
This commit is contained in:
parent
a29265e725
commit
678888c65f
14 changed files with 29 additions and 29 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue