Detect use of deprecated base_url (#35353)
* Detect use of deprecated base_url * Update get_url helper * Update core migration * Migrate all tests
This commit is contained in:
1 parent
1be41b9de8
commit
e56dd8ed50
21 files changed
+308
-73
No files matched your search
@@ -8,6 +8,7 @@ from homeassistant.components.google_assistant.const import ( # noqa: F401
|
||||
EVENT_COMMAND_RECEIVED,
|
||||
NOT_EXPOSE_LOCAL,
|
||||
)
|
||||
from homeassistant.config import async_process_ha_core_config
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.util import dt
|
||||
|
||||
@@ -24,7 +25,11 @@ from tests.common import (
|
||||
async def test_google_entity_sync_serialize_with_local_sdk(hass):
|
||||
"""Test sync serialize attributes of a GoogleEntity."""
|
||||
hass.states.async_set("light.ceiling_lights", "off")
|
||||
hass.config.api = Mock(port=1234, use_ssl=True, base_url="https://hostname:1234")
|
||||
hass.config.api = Mock(port=1234, use_ssl=True)
|
||||
await async_process_ha_core_config(
|
||||
hass, {"external_url": "https://hostname:1234"},
|
||||
)
|
||||
|
||||
hass.http = Mock(server_port=1234)
|
||||
config = MockConfig(
|
||||
hass=hass,
|
||||
|
||||
Reference in new issue
Block a user