Update whoami URL (#67793)

This commit is contained in:
Joakim Sørensen 2022-03-07 11:11:25 +01:00 committed by GitHub
parent d656acfa2c
commit 9a6f5bbc04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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"):