async_get_url -> get_url (#35382)
This commit is contained in:
1 parent
62f2520ee1
commit
e3e3a113e9
25 files changed
+243
-315
No files matched your search
@@ -30,7 +30,7 @@ from homeassistant.helpers.dispatcher import (
|
||||
async_dispatcher_connect,
|
||||
async_dispatcher_send,
|
||||
)
|
||||
from homeassistant.helpers.network import NoURLAvailableError, async_get_url
|
||||
from homeassistant.helpers.network import NoURLAvailableError, get_url
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
|
||||
from .const import (
|
||||
@@ -113,7 +113,7 @@ def get_webhook_url(hass: HomeAssistantType) -> str:
|
||||
|
||||
def _get_app_template(hass: HomeAssistantType):
|
||||
try:
|
||||
endpoint = f"at {async_get_url(hass, allow_cloud=False, prefer_external=True)}"
|
||||
endpoint = f"at {get_url(hass, allow_cloud=False, prefer_external=True)}"
|
||||
except NoURLAvailableError:
|
||||
endpoint = ""
|
||||
|
||||
|
||||
Reference in new issue
Block a user