diff --git a/homeassistant/components/auth/indieauth.py b/homeassistant/components/auth/indieauth.py index cd8e797876f..0d942bd358d 100644 --- a/homeassistant/components/auth/indieauth.py +++ b/homeassistant/components/auth/indieauth.py @@ -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 diff --git a/tests/components/auth/test_indieauth.py b/tests/components/auth/test_indieauth.py index 3d1ba068c85..8a02502e16c 100644 --- a/tests/components/auth/test_indieauth.py +++ b/tests/components/auth/test_indieauth.py @@ -166,8 +166,7 @@ async def test_find_link_tag_max_size(hass, mock_session): @pytest.mark.parametrize( - "client_id", - ["https://www.home-assistant.io/android", "https://www.home-assistant.io/iOS"], + "client_id", ["https://home-assistant.io/android", "https://home-assistant.io/iOS"], ) async def test_verify_redirect_uri_android_ios(client_id): """Test that we verify redirect uri correctly for Android/iOS."""