cover.py
def _travel_to_position(self, position):
        """Start TravelCalculator and update ha-state."""
        # In TravelCalculator 0 is open, 100 is closed.
        travel_time = self._tc._calculate_travel_time(
            self.current_cover_position - position
        )
        if self._template is None:
            _LOGGER.debug(
                "%s is travelling from position %s to %s in %s seconds",
                self.name, self.current_cover_position, position, travel_time,
            )
            self._tc.start_travel(100 - position)
            self._update_scheduled_ha_state_callback(travel_time)
        return travel_time
Start TravelCalculator and update ha-state.
Start TravelCalculator and update ha-state.
Start TravelCalculator and update ha - state .
def _travel_to_position(self, position):
        travel_time = self._tc._calculate_travel_time(
            self.current_cover_position - position
        )
        if self._template is None:
            _LOGGER.debug(
                "%s is travelling from position %s to %s in %s seconds",
                self.name, self.current_cover_position, position, travel_time,
            )
            self._tc.start_travel(100 - position)
            self._update_scheduled_ha_state_callback(travel_time)
        return travel_time
def _travel_to_position ( self , position ) : travel_time = self . _tc . _calculate_travel_time ( self . current_cover_position - position ) if self . _template is None : _LOGGER . debug ( "%s is travelling from position %s to %s in %s seconds" , self . name , self . current_cover_position , position , travel_time , ) self . _tc . start_travel ( 100 - position ) self . _update_scheduled_ha_state_callback ( travel_time ) return travel_time
Start TravelCalculator and update ha-state.
Start TravelCalculator and update ha - state .
"""Start TravelCalculator and update ha-state.""" # In TravelCalculator 0 is open, 100 is closed.
self
position