mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix Telegram webhook registration if deregistration previously failed (#133398)
This commit is contained in:
parent
b16c3a55a5
commit
52dc124cfe
@ -109,7 +109,6 @@ class PushBot(BaseTelegramBotEntity):
|
|||||||
else:
|
else:
|
||||||
_LOGGER.debug("telegram webhook status: %s", current_status)
|
_LOGGER.debug("telegram webhook status: %s", current_status)
|
||||||
|
|
||||||
if current_status and current_status["url"] != self.webhook_url:
|
|
||||||
result = await self._try_to_set_webhook()
|
result = await self._try_to_set_webhook()
|
||||||
if result:
|
if result:
|
||||||
_LOGGER.debug("Set new telegram webhook %s", self.webhook_url)
|
_LOGGER.debug("Set new telegram webhook %s", self.webhook_url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user