Remove telegram_bot from mypy ignore list (#74661)
parent
5defe67269
commit
0f33c08dca
|
@ -22,10 +22,11 @@ async def async_setup_platform(hass, bot, config):
|
|||
return True
|
||||
|
||||
|
||||
def process_error(update: Update, context: CallbackContext):
|
||||
def process_error(update: Update, context: CallbackContext) -> None:
|
||||
"""Telegram bot error handler."""
|
||||
try:
|
||||
raise context.error
|
||||
if context.error:
|
||||
raise context.error
|
||||
except (TimedOut, NetworkError, RetryAfter):
|
||||
# Long polling timeout or connection problem. Nothing serious.
|
||||
pass
|
||||
|
|
3
mypy.ini
3
mypy.ini
|
@ -2819,9 +2819,6 @@ ignore_errors = true
|
|||
[mypy-homeassistant.components.sonos.statistics]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.telegram_bot.polling]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.template.number]
|
||||
ignore_errors = true
|
||||
|
||||
|
|
|
@ -74,7 +74,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
|||
"homeassistant.components.sonos.sensor",
|
||||
"homeassistant.components.sonos.speaker",
|
||||
"homeassistant.components.sonos.statistics",
|
||||
"homeassistant.components.telegram_bot.polling",
|
||||
"homeassistant.components.template.number",
|
||||
"homeassistant.components.template.sensor",
|
||||
"homeassistant.components.toon",
|
||||
|
|
Loading…
Reference in New Issue