mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Active mypy for netio (#54543)
This commit is contained in:
parent
848c0be58a
commit
85ff5e34cd
@ -1,7 +1,10 @@
|
||||
"""The Netio switch component."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections import namedtuple
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
from pynetio import Netio
|
||||
import voluptuous as vol
|
||||
@ -29,8 +32,8 @@ CONF_OUTLETS = "outlets"
|
||||
|
||||
DEFAULT_PORT = 1234
|
||||
DEFAULT_USERNAME = "admin"
|
||||
Device = namedtuple("device", ["netio", "entities"])
|
||||
DEVICES = {}
|
||||
Device = namedtuple("Device", ["netio", "entities"])
|
||||
DEVICES: dict[str, Any] = {}
|
||||
|
||||
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.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.netio.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.nightscout.*]
|
||||
ignore_errors = true
|
||||
|
||||
|
@ -97,7 +97,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
||||
"homeassistant.components.mullvad.*",
|
||||
"homeassistant.components.ness_alarm.*",
|
||||
"homeassistant.components.nest.legacy.*",
|
||||
"homeassistant.components.netio.*",
|
||||
"homeassistant.components.nightscout.*",
|
||||
"homeassistant.components.nilu.*",
|
||||
"homeassistant.components.nmap_tracker.*",
|
||||
|
Loading…
x
Reference in New Issue
Block a user