Fix client ID lookup for official apps (#36131)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-05-25 15:39:24 -04:00
1 parent 4313d4b26b
commit ba120d4220
2 files changed
+3 -4

No files matched your search

+2 -2
View File
@@ -33,8 +33,8 @@ async def verify_redirect_uri(hass, client_id, redirect_uri):
# Whitelist the iOS and Android callbacks so that people can link apps
# without being connected to the internet.
if redirect_uri == "homeassistant://auth-callback" and client_id in (
"https://www.home-assistant.io/android",
"https://www.home-assistant.io/iOS",
"https://home-assistant.io/android",
"https://home-assistant.io/iOS",
):
return True