From 7e2c6ae332b6f3679bb3b20e3960763040d8aed0 Mon Sep 17 00:00:00 2001 From: Milan Meulemans Date: Tue, 10 Aug 2021 10:47:17 +0200 Subject: [PATCH] Activate mypy for Pilight (#53956) --- homeassistant/components/pilight/__init__.py | 2 +- mypy.ini | 3 --- script/hassfest/mypy_config.py | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/pilight/__init__.py b/homeassistant/components/pilight/__init__.py index 02d56c890fe..5dbad2838bc 100644 --- a/homeassistant/components/pilight/__init__.py +++ b/homeassistant/components/pilight/__init__.py @@ -136,7 +136,7 @@ class CallRateDelayThrottle: def __init__(self, hass, delay_seconds: float) -> None: """Initialize the delay handler.""" self._delay = timedelta(seconds=max(0.0, delay_seconds)) - self._queue = [] + self._queue: list = [] self._active = False self._lock = threading.Lock() self._next_ts = dt_util.utcnow() diff --git a/mypy.ini b/mypy.ini index d7b01ea939b..22cd0c478d5 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1574,9 +1574,6 @@ ignore_errors = true [mypy-homeassistant.components.philips_js.*] ignore_errors = true -[mypy-homeassistant.components.pilight.*] -ignore_errors = true - [mypy-homeassistant.components.ping.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 4ed672f8e01..31e364d6062 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -117,7 +117,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.ozw.*", "homeassistant.components.panasonic_viera.*", "homeassistant.components.philips_js.*", - "homeassistant.components.pilight.*", "homeassistant.components.ping.*", "homeassistant.components.pioneer.*", "homeassistant.components.plaato.*",