mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 22:40:44 +00:00
Use literal string interpolation in integrations T-W (f-strings) (#26394)
This commit is contained in:
committed by
Pascal Vizeli
parent
cde09062c4
commit
ef0e9431b6
@@ -45,7 +45,7 @@ async def async_setup_platform(hass, config):
|
||||
else:
|
||||
_LOGGER.debug("telegram webhook Status: %s", current_status)
|
||||
|
||||
handler_url = "{0}{1}".format(base_url, TELEGRAM_HANDLER_URL)
|
||||
handler_url = f"{base_url}{TELEGRAM_HANDLER_URL}"
|
||||
if not handler_url.startswith("https"):
|
||||
_LOGGER.error("Invalid telegram webhook %s must be https", handler_url)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user