From a5c1fbcb1a25844b496ede01eeab482fa23612a4 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Mon, 23 Aug 2021 20:57:37 +0200 Subject: [PATCH] Activate mypy for velbus (#55055) --- homeassistant/components/velbus/config_flow.py | 4 +++- mypy.ini | 3 --- script/hassfest/mypy_config.py | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/velbus/config_flow.py b/homeassistant/components/velbus/config_flow.py index a10d59bad4a..93dd68c9eea 100644 --- a/homeassistant/components/velbus/config_flow.py +++ b/homeassistant/components/velbus/config_flow.py @@ -1,4 +1,6 @@ """Config flow for the Velbus platform.""" +from __future__ import annotations + import velbus import voluptuous as vol @@ -25,7 +27,7 @@ class VelbusConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): def __init__(self) -> None: """Initialize the velbus config flow.""" - self._errors = {} + self._errors: dict[str, str] = {} def _create_device(self, name: str, prt: str): """Create an entry async.""" diff --git a/mypy.ini b/mypy.ini index f9db7f199cf..c0495cd5c4c 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1649,9 +1649,6 @@ ignore_errors = true [mypy-homeassistant.components.upnp.*] ignore_errors = true -[mypy-homeassistant.components.velbus.*] -ignore_errors = true - [mypy-homeassistant.components.vera.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index a25760c4825..ef681cc5ea3 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -142,7 +142,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.tuya.*", "homeassistant.components.unifi.*", "homeassistant.components.upnp.*", - "homeassistant.components.velbus.*", "homeassistant.components.vera.*", "homeassistant.components.verisure.*", "homeassistant.components.vizio.*",