Update ruff to v0.0.280 (#97102)

This commit is contained in:
Franck Nijhof 2023-07-23 22:00:26 +02:00 committed by GitHub
parent bdd253328d
commit 86708b5590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 25 additions and 60 deletions

View file

@ -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 "