File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
homeassistant/components/telegram_bot
tests/components/telegram_bot Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1414from homeassistant .components .http import HomeAssistantRequest , HomeAssistantView
1515from homeassistant .const import CONF_URL
1616from homeassistant .core import HomeAssistant
17- from homeassistant .exceptions import ConfigEntryNotReady
1817from homeassistant .helpers .network import get_url
1918
2019from .bot import BaseTelegramBot , TelegramBotConfigEntry
@@ -42,7 +41,7 @@ async def async_setup_bot_platform(
4241
4342 webhook_registered = await pushbot .register_webhook ()
4443 if not webhook_registered :
45- raise ConfigEntryNotReady ("Failed to register webhook with Telegram" )
44+ raise RuntimeError ("Failed to register webhook with Telegram" )
4645 _LOGGER .info (
4746 "[%s %s] Webhook registered with %s" ,
4847 bot .username ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ async def test_set_webhooks_failed(
4141 # first fail with exception, second fail with False
4242 assert mock_set_webhook .call_count == 2
4343
44- # SETUP_ERROR is result of ConfigEntryNotReady ("Failed to register webhook with Telegram") in webhooks.py
44+ # SETUP_ERROR is result of RuntimeError ("Failed to register webhook with Telegram") in webhooks.py
4545 assert mock_webhooks_config_entry .state is ConfigEntryState .SETUP_ERROR
4646
4747 # test fail after retries
You can’t perform that action at this time.
0 commit comments