def LoadAuth(decoratee):
  @wraps(decoratee)
  def _decorated(self, *args, **kwargs):
    if self.auth is None:  # Initialize auth if needed.
      self.auth = GoogleAuth()
    if self.auth.access_token_expired:
      self.auth.LocalWebserverAuth()
    if self.auth.service is None:  # Check if drive api is built.
      self.auth.Authorize()
    return decoratee(self, *args, **kwargs)
  return _decorated
Send discovery event if component not yet discovered.
dataset/ETHPy150Open googledrive/PyDrive/pydrive/auth.py/LoadAuth--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/tellduslive.py/TelldusLiveData._discover