Skip to content

Commit

Permalink
Fix acmeda set cover tilt position (#76927)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Aug 17, 2022
1 parent 35d01d7 commit 171893b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homeassistant/components/acmeda/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .base import AcmedaBase
from .const import ACMEDA_HUB_UPDATE, DOMAIN
from .helpers import async_add_acmeda_entities
from .hub import PulseHub


async def async_setup_entry(
Expand All @@ -24,7 +25,7 @@ async def async_setup_entry(
async_add_entities: AddEntitiesCallback,
) -> None:
"""Set up the Acmeda Rollers from a config entry."""
hub = hass.data[DOMAIN][config_entry.entry_id]
hub: PulseHub = hass.data[DOMAIN][config_entry.entry_id]

current: set[int] = set()

Expand Down Expand Up @@ -122,6 +123,6 @@ async def async_stop_cover_tilt(self, **kwargs: Any) -> None:
"""Stop the roller."""
await self.roller.move_stop()

async def async_set_cover_tilt(self, **kwargs):
async def async_set_cover_tilt_position(self, **kwargs: Any) -> None:
"""Tilt the roller shutter to a specific position."""
await self.roller.move_to(100 - kwargs[ATTR_POSITION])

0 comments on commit 171893b

Please sign in to comment.