mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Adjust tilt_position method in esphome cover (#74041)
This commit is contained in:
parent
734b99e6ac
commit
38759bb98b
@ -125,8 +125,9 @@ class EsphomeCover(EsphomeEntity[CoverInfo, CoverState], CoverEntity):
|
||||
"""Close the cover tilt."""
|
||||
await self._client.cover_command(key=self._static_info.key, tilt=0.0)
|
||||
|
||||
async def async_set_cover_tilt_position(self, **kwargs: int) -> None:
|
||||
async def async_set_cover_tilt_position(self, **kwargs: Any) -> None:
|
||||
"""Move the cover tilt to a specific position."""
|
||||
tilt_position: int = kwargs[ATTR_TILT_POSITION]
|
||||
await self._client.cover_command(
|
||||
key=self._static_info.key, tilt=kwargs[ATTR_TILT_POSITION] / 100
|
||||
key=self._static_info.key, tilt=tilt_position / 100
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user