Active mypy for netio (#54543)

pull/54732/head
jan iversen 2021-08-16 23:25:41 +02:00 committed by GitHub
parent 848c0be58a
commit 85ff5e34cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View File

@ -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)

View File

@ -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

View File

@ -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.*",