cover.py
async def async_set_cover_position(self, **kwargs):
        """Move the cover to a specific position."""
        # Feature only available if SUPPORT_SET_POSITION is set
        if ATTR_POSITION in kwargs:
            pos = kwargs[ATTR_POSITION]
            travel_time = self._travel_to_position(pos)
            if self._tc.is_closing():
                await self._becker.move_down(self._channel)
            elif self._tc.is_opening():
                await self._becker.move_up(self._channel)
            if 0 < self._tc.travel_to_position < 100:
                self._update_scheduled_stop_travel_callback(travel_time)
Move the cover to a specific position.
Move the cover to a specific position.
Move the cover to a specific position .
async def async_set_cover_position(self, **kwargs):
        if ATTR_POSITION in kwargs:
            pos = kwargs[ATTR_POSITION]
            travel_time = self._travel_to_position(pos)
            if self._tc.is_closing():
                await self._becker.move_down(self._channel)
            elif self._tc.is_opening():
                await self._becker.move_up(self._channel)
            if 0 < self._tc.travel_to_position < 100:
                self._update_scheduled_stop_travel_callback(travel_time)
async def async_set_cover_position ( self , ** kwargs ) : if ATTR_POSITION in kwargs : pos = kwargs [ ATTR_POSITION ] travel_time = self . _travel_to_position ( pos ) if self . _tc . is_closing ( ) : await self . _becker . move_down ( self . _channel ) elif self . _tc . is_opening ( ) : await self . _becker . move_up ( self . _channel ) if 0 < self . _tc . travel_to_position < 100 : self . _update_scheduled_stop_travel_callback ( travel_time )
Move the cover to a specific position.
Move the cover to a specific position .
"""Move the cover to a specific position.""" # Feature only available if SUPPORT_SET_POSITION is set
self