1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add get_url helper, deprecate base_url (#35224)

This commit is contained in:
Franck Nijhof
2020-05-08 02:29:47 +02:00
committed by GitHub
parent 7e4aa2409f
commit 2223592486
51 changed files with 1416 additions and 198 deletions

View File

@@ -14,6 +14,7 @@ from homeassistant.components.withings import (
async_setup_entry,
const,
)
from homeassistant.config import async_process_ha_core_config
from homeassistant.const import STATE_UNKNOWN
from homeassistant.core import HomeAssistant
@@ -164,6 +165,10 @@ async def test_upgrade_token(
config = await setup_hass(hass)
profiles = config[const.DOMAIN][const.PROFILES]
await async_process_ha_core_config(
hass, {"internal_url": "http://example.local"},
)
await configure_integration(
hass=hass,
aiohttp_client=aiohttp_client,
@@ -234,6 +239,10 @@ async def test_auth_failure(
config = await setup_hass(hass)
profiles = config[const.DOMAIN][const.PROFILES]
await async_process_ha_core_config(
hass, {"internal_url": "http://example.local"},
)
await configure_integration(
hass=hass,
aiohttp_client=aiohttp_client,
@@ -269,6 +278,10 @@ async def test_full_setup(hass: HomeAssistant, aiohttp_client, aioclient_mock) -
config = await setup_hass(hass)
profiles = config[const.DOMAIN][const.PROFILES]
await async_process_ha_core_config(
hass, {"internal_url": "http://example.local"},
)
await configure_integration(
hass=hass,
aiohttp_client=aiohttp_client,