async_get_url -> get_url (#35382)

This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-05-08 21:53:28 +02:00
1 parent 62f2520ee1
commit e3e3a113e9
25 files changed
+243 -315

No files matched your search

@@ -18,7 +18,7 @@ from homeassistant.const import (
)
from homeassistant.core import Context, HomeAssistant, State, callback
from homeassistant.helpers.event import async_call_later
from homeassistant.helpers.network import async_get_url
from homeassistant.helpers.network import get_url
from homeassistant.helpers.storage import Store
from . import trait
@@ -426,7 +426,7 @@ class GoogleEntity:
"webhookId": self.config.local_sdk_webhook_id,
"httpPort": self.hass.http.server_port,
"httpSSL": self.hass.config.api.use_ssl,
"baseUrl": async_get_url(self.hass, prefer_external=True),
"baseUrl": get_url(self.hass, prefer_external=True),
"proxyDeviceId": agent_user_id,
}
@@ -50,7 +50,7 @@ from homeassistant.const import (
TEMP_FAHRENHEIT,
)
from homeassistant.core import DOMAIN as HA_DOMAIN
from homeassistant.helpers.network import async_get_url
from homeassistant.helpers.network import get_url
from homeassistant.util import color as color_util, temperature as temp_util
from .const import (
@@ -248,7 +248,7 @@ class CameraStreamTrait(_Trait):
url = await self.hass.components.camera.async_request_stream(
self.state.entity_id, "hls"
)
self.stream_info = {"cameraStreamAccessUrl": f"{async_get_url(self.hass)}{url}"}
self.stream_info = {"cameraStreamAccessUrl": f"{get_url(self.hass)}{url}"}
@register_trait