From fe706abdb5debd05ff07f8e0adb3b21ad40fe43b Mon Sep 17 00:00:00 2001 From: Christiaan Goossens <9487666+christiaangoossens@users.noreply.github.com> Date: Tue, 21 Apr 2026 21:34:11 +0200 Subject: [PATCH] Fix type casting error (#278) --- custom_components/auth_oidc/endpoints/welcome.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/auth_oidc/endpoints/welcome.py b/custom_components/auth_oidc/endpoints/welcome.py index 5ed2ead..e09e783 100644 --- a/custom_components/auth_oidc/endpoints/welcome.py +++ b/custom_components/auth_oidc/endpoints/welcome.py @@ -1,6 +1,5 @@ """Welcome route to show the user the OIDC login button and give instructions.""" -from ast import List import base64 import binascii from urllib.parse import urlparse, parse_qs, unquote, urlencode @@ -29,7 +28,7 @@ class OIDCWelcomeView(HomeAssistantView): self.has_other_auth_providers = options.get("has_other_auth_providers") self.prefers_skipping = options.get("prefers_skipping") - async def _process_url(self, redirect_uri: str) -> List[str, bool]: + async def _process_url(self, redirect_uri: str) -> tuple[str, bool]: """Processes the redirect URI to determine if we need setTokens and if this is mobile.""" # decodeURIComponent(btoa(...)) -> unquote first, then base64 decode redirect_uri = base64.b64decode(unquote(redirect_uri), validate=True).decode(