Activate mypy for velbus (#55055)

This commit is contained in:
jan iversen 2021-08-23 20:57:37 +02:00 committed by GitHub
parent 6ad0e0220a
commit a5c1fbcb1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -1,4 +1,6 @@
"""Config flow for the Velbus platform.""" """Config flow for the Velbus platform."""
from __future__ import annotations
import velbus import velbus
import voluptuous as vol import voluptuous as vol
@ -25,7 +27,7 @@ class VelbusConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
def __init__(self) -> None: def __init__(self) -> None:
"""Initialize the velbus config flow.""" """Initialize the velbus config flow."""
self._errors = {} self._errors: dict[str, str] = {}
def _create_device(self, name: str, prt: str): def _create_device(self, name: str, prt: str):
"""Create an entry async.""" """Create an entry async."""

View file

@ -1649,9 +1649,6 @@ ignore_errors = true
[mypy-homeassistant.components.upnp.*] [mypy-homeassistant.components.upnp.*]
ignore_errors = true ignore_errors = true
[mypy-homeassistant.components.velbus.*]
ignore_errors = true
[mypy-homeassistant.components.vera.*] [mypy-homeassistant.components.vera.*]
ignore_errors = true ignore_errors = true

View file

@ -142,7 +142,6 @@ IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.tuya.*", "homeassistant.components.tuya.*",
"homeassistant.components.unifi.*", "homeassistant.components.unifi.*",
"homeassistant.components.upnp.*", "homeassistant.components.upnp.*",
"homeassistant.components.velbus.*",
"homeassistant.components.vera.*", "homeassistant.components.vera.*",
"homeassistant.components.verisure.*", "homeassistant.components.verisure.*",
"homeassistant.components.vizio.*", "homeassistant.components.vizio.*",