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

+2 -2
View File
@@ -10,7 +10,7 @@ from homeassistant.components.http.const import KEY_REAL_IP
from homeassistant.components.http.view import HomeAssistantView
from homeassistant.const import HTTP_OK
from homeassistant.core import callback
from homeassistant.helpers.network import async_get_url
from homeassistant.helpers.network import get_url
from homeassistant.loader import bind_hass
_LOGGER = logging.getLogger(__name__)
@@ -57,7 +57,7 @@ def async_generate_id():
def async_generate_url(hass, webhook_id):
"""Generate the full URL for a webhook_id."""
return "{}{}".format(
async_get_url(hass, prefer_external=True, allow_cloud=False),
get_url(hass, prefer_external=True, allow_cloud=False),
async_generate_path(webhook_id),
)