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