Update ruff to v0.0.280 (#97102)
This commit is contained in:
parent
bdd253328d
commit
86708b5590
20 changed files with 25 additions and 60 deletions
|
@ -169,10 +169,7 @@ def async_generate_motioneye_webhook(
|
|||
) -> str | None:
|
||||
"""Generate the full local URL for a webhook_id."""
|
||||
try:
|
||||
return "{}{}".format(
|
||||
get_url(hass, allow_cloud=False),
|
||||
async_generate_path(webhook_id),
|
||||
)
|
||||
return f"{get_url(hass, allow_cloud=False)}{async_generate_path(webhook_id)}"
|
||||
except NoURLAvailableError:
|
||||
_LOGGER.warning(
|
||||
"Unable to get Home Assistant URL. Have you set the internal and/or "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue