From 3e4883b1750d072dfc0692e3021f3a86fa3db159 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 20 Jan 2022 09:49:34 +0100 Subject: [PATCH] Remove stt from mypy ignore list (#64468) --- homeassistant/components/stt/__init__.py | 3 ++- mypy.ini | 3 --- script/hassfest/mypy_config.py | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/stt/__init__.py b/homeassistant/components/stt/__init__.py index 3b5efbcba9cf..b4e22f1cdd23 100644 --- a/homeassistant/components/stt/__init__.py +++ b/homeassistant/components/stt/__init__.py @@ -4,6 +4,7 @@ from __future__ import annotations from abc import ABC, abstractmethod import asyncio import logging +from typing import Any from aiohttp import StreamReader, web from aiohttp.hdrs import istr @@ -185,7 +186,7 @@ class SpeechToTextView(HomeAssistantView): return None # Convert Header data - args = {} + args: dict[str, Any] = {} for value in data: value = value.strip() args[value.partition("=")[0]] = value.partition("=")[2] diff --git a/mypy.ini b/mypy.ini index 6dbd76c288e5..077743a55c99 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2182,9 +2182,6 @@ ignore_errors = true [mypy-homeassistant.components.spotify.*] ignore_errors = true -[mypy-homeassistant.components.stt.*] -ignore_errors = true - [mypy-homeassistant.components.system_health.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 63044da62256..815595f0ea8a 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -69,7 +69,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.solaredge.*", "homeassistant.components.sonos.*", "homeassistant.components.spotify.*", - "homeassistant.components.stt.*", "homeassistant.components.system_health.*", "homeassistant.components.system_log.*", "homeassistant.components.telegram_bot.*",