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

@@ -11,7 +11,7 @@ from homeassistant.const import (
HTTP_BAD_REQUEST,
HTTP_UNAUTHORIZED,
)
from homeassistant.helpers.network import async_get_url
from homeassistant.helpers.network import get_url
from . import (
CONF_ALLOWED_CHAT_IDS,
@@ -34,7 +34,7 @@ async def async_setup_platform(hass, config):
current_status = await hass.async_add_job(bot.getWebhookInfo)
base_url = config.get(
CONF_URL, async_get_url(hass, require_ssl=True, allow_internal=False)
CONF_URL, get_url(hass, require_ssl=True, allow_internal=False)
)
# Some logging of Bot current status: