Skip to content
Snippets Groups Projects
Unverified Commit 9a6f5bbc authored by Joakim Sørensen's avatar Joakim Sørensen Committed by GitHub
Browse files

Update whoami URL (#67793)

parent d656acfa
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,8 @@ import aiohttp
from homeassistant.const import __version__ as HA_VERSION
WHOAMI_URL = "https://whoami.home-assistant.io/v1"
WHOAMI_URL_DEV = "https://whoami-v1-dev.home-assistant.workers.dev/v1"
WHOAMI_URL = "https://services.home-assistant.io/whoami/v1"
WHOAMI_URL_DEV = "https://services-dev.home-assistant.workers.dev/whoami/v1"
# Constants from https://github.com/maurycyp/vincenty
# Earth ellipsoid according to WGS 84
......
......@@ -74,7 +74,7 @@ def test_get_miles():
async def test_detect_location_info_whoami(aioclient_mock, session):
"""Test detect location info using whoami.home-assistant.io."""
"""Test detect location info using services.home-assistant.io/whoami."""
aioclient_mock.get(location_util.WHOAMI_URL, text=load_fixture("whoami.json"))
with patch("homeassistant.util.location.HA_VERSION", "1.0"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment