Active mypy for netio (#54543)
This commit is contained in:
parent
848c0be58a
commit
85ff5e34cd
3 changed files with 5 additions and 6 deletions
|
@ -1,7 +1,10 @@
|
||||||
"""The Netio switch component."""
|
"""The Netio switch component."""
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
|
from typing import Any
|
||||||
|
|
||||||
from pynetio import Netio
|
from pynetio import Netio
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
@ -29,8 +32,8 @@ CONF_OUTLETS = "outlets"
|
||||||
|
|
||||||
DEFAULT_PORT = 1234
|
DEFAULT_PORT = 1234
|
||||||
DEFAULT_USERNAME = "admin"
|
DEFAULT_USERNAME = "admin"
|
||||||
Device = namedtuple("device", ["netio", "entities"])
|
Device = namedtuple("Device", ["netio", "entities"])
|
||||||
DEVICES = {}
|
DEVICES: dict[str, Any] = {}
|
||||||
|
|
||||||
MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)
|
MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)
|
||||||
|
|
||||||
|
|
3
mypy.ini
3
mypy.ini
|
@ -1514,9 +1514,6 @@ ignore_errors = true
|
||||||
[mypy-homeassistant.components.nest.legacy.*]
|
[mypy-homeassistant.components.nest.legacy.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.netio.*]
|
|
||||||
ignore_errors = true
|
|
||||||
|
|
||||||
[mypy-homeassistant.components.nightscout.*]
|
[mypy-homeassistant.components.nightscout.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
||||||
"homeassistant.components.mullvad.*",
|
"homeassistant.components.mullvad.*",
|
||||||
"homeassistant.components.ness_alarm.*",
|
"homeassistant.components.ness_alarm.*",
|
||||||
"homeassistant.components.nest.legacy.*",
|
"homeassistant.components.nest.legacy.*",
|
||||||
"homeassistant.components.netio.*",
|
|
||||||
"homeassistant.components.nightscout.*",
|
"homeassistant.components.nightscout.*",
|
||||||
"homeassistant.components.nilu.*",
|
"homeassistant.components.nilu.*",
|
||||||
"homeassistant.components.nmap_tracker.*",
|
"homeassistant.components.nmap_tracker.*",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue