mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Activate mypy for velbus (#55055)
This commit is contained in:
@@ -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."""
|
||||||
|
3
mypy.ini
3
mypy.ini
@@ -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
|
||||||
|
|
||||||
|
@@ -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.*",
|
||||||
|
Reference in New Issue
Block a user