We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b36eea commit 2dee821Copy full SHA for 2dee821
custom_components/rtetempo/api_worker.py
@@ -233,7 +233,10 @@ def _compute_wait_time(
233
def _get_access_token(self):
234
_LOGGER.debug("Requesting access token")
235
try:
236
- self._oauth.fetch_token(token_url=API_TOKEN_ENDPOINT, auth=self._auth)
+ headers = {
237
+ "User-Agent": USER_AGENT,
238
+ }
239
+ self._oauth.fetch_token(token_url=API_TOKEN_ENDPOINT, auth=self._auth, headers=headers)
240
except (
241
requests.exceptions.RequestException,
242
OAuth2Error,
0 commit comments