mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Always send powerview move command in case shade is out of sync (#55308)
This commit is contained in:
parent
5693f9ff9b
commit
efb1fb9978
@ -177,8 +177,6 @@ class PowerViewShade(ShadeEntity, CoverEntity):
|
|||||||
"""Move the shade to a position."""
|
"""Move the shade to a position."""
|
||||||
current_hass_position = hd_position_to_hass(self._current_cover_position)
|
current_hass_position = hd_position_to_hass(self._current_cover_position)
|
||||||
steps_to_move = abs(current_hass_position - target_hass_position)
|
steps_to_move = abs(current_hass_position - target_hass_position)
|
||||||
if not steps_to_move:
|
|
||||||
return
|
|
||||||
self._async_schedule_update_for_transition(steps_to_move)
|
self._async_schedule_update_for_transition(steps_to_move)
|
||||||
self._async_update_from_command(
|
self._async_update_from_command(
|
||||||
await self._shade.move(
|
await self._shade.move(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user