Skip to content

Commit 563fcd2

Browse files
committed
fix syntax for mpy build
1 parent 0d9189a commit 563fcd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_oauth2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def wait_for_authorization(self) -> bool:
132132
}
133133
url = (
134134
f"https://oauth2.googleapis.com/token?client_id={self._client_id}"
135-
f"&client_secret={self._client_secret}&device_code={self._device_code}"
136-
"&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code"
135+
+ f"&client_secret={self._client_secret}&device_code={self._device_code}"
136+
+ "&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Adevice_code"
137137
)
138138

139139
# Blocking loop to poll endpoint
@@ -175,7 +175,7 @@ def refresh_access_token(self) -> bool:
175175
}
176176
url = (
177177
f"https://oauth2.googleapis.com/token?client_id={self._client_id}&client_secret={self._client_secret}"
178-
f"&grant_type=refresh_token&refresh_token={self.refresh_token}"
178+
+ f"&grant_type=refresh_token&refresh_token={self.refresh_token}"
179179
)
180180
resp = self._requests.post(url, headers=headers)
181181
if resp.status_code in {400, 404}:

0 commit comments

Comments
 (0)