cover.py
def _update_scheduled_stop_travel_callback(self, delay=None):
        """
        Update ha-state callback
        None: unsubscibe pending callback
        >= 0: setup callback stop after delay later
        """
        # unsubscribe outdated pending callbacks
        self._callbacks.pop('travel_stop', lambda: None)()
        # schedule callback to stop travelling at end of travel
        if delay is not None:
            # Stop now or later
            if delay >= 0:
                _LOGGER.debug(
                    "%s setup stop travel callback in %s seconds",
                    self.name, delay,
                )
                self._callbacks['travel_stop'] = async_call_later(
                    self.hass, delay, self._async_stop_travel
                )

        Update ha-state callback
        None: unsubscibe pending callback
        >= 0: setup callback stop after delay later
        
Update ha-state callback
None: unsubscibe pending callback
>= 0: setup callback stop after delay later
Update ha - state callback None : unsubscibe pending callback > = 0 : setup callback stop after delay later
def _update_scheduled_stop_travel_callback(self, delay=None):
        self._callbacks.pop('travel_stop', lambda: None)()
        if delay is not None:
            if delay >= 0:
                _LOGGER.debug(
                    "%s setup stop travel callback in %s seconds",
                    self.name, delay,
                )
                self._callbacks['travel_stop'] = async_call_later(
                    self.hass, delay, self._async_stop_travel
                )
def _update_scheduled_stop_travel_callback ( self , delay = None ) : self . _callbacks . pop ( 'travel_stop' , lambda : None ) ( ) if delay is not None : if delay >= 0 : _LOGGER . debug ( "%s setup stop travel callback in %s seconds" , self . name , delay , ) self . _callbacks [ 'travel_stop' ] = async_call_later ( self . hass , delay , self . _async_stop_travel )
Update ha-state callback
None: unsubscibe pending callback
>= 0: setup callback stop after delay later
Update ha - state callback None : unsubscibe pending callback > = 0 : setup callback stop after delay later
"""
        Update ha-state callback
        None: unsubscibe pending callback
        >= 0: setup callback stop after delay later
        """ # unsubscribe outdated pending callbacks # schedule callback to stop travelling at end of travel # Stop now or later
self
delay