From 814411dc1d7d14d5ff0499fd7e8f9804b817c490 Mon Sep 17 00:00:00 2001 From: Milan Meulemans Date: Tue, 10 Aug 2021 10:56:34 +0200 Subject: [PATCH] Activate mypy for Solar-Log (#53952) --- homeassistant/components/solarlog/config_flow.py | 2 +- mypy.ini | 3 --- script/hassfest/mypy_config.py | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/solarlog/config_flow.py b/homeassistant/components/solarlog/config_flow.py index cced913222a..4267502e3ca 100644 --- a/homeassistant/components/solarlog/config_flow.py +++ b/homeassistant/components/solarlog/config_flow.py @@ -31,7 +31,7 @@ class SolarLogConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): def __init__(self) -> None: """Initialize the config flow.""" - self._errors = {} + self._errors: dict = {} def _host_in_configuration_exists(self, host) -> bool: """Return True if host exists in configuration.""" diff --git a/mypy.ini b/mypy.ini index dcedc8d57ef..3b6f040368d 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1643,9 +1643,6 @@ ignore_errors = true [mypy-homeassistant.components.solaredge.*] ignore_errors = true -[mypy-homeassistant.components.solarlog.*] -ignore_errors = true - [mypy-homeassistant.components.somfy.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 3e669998eab..b507378db43 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -140,7 +140,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.smarttub.*", "homeassistant.components.smarty.*", "homeassistant.components.solaredge.*", - "homeassistant.components.solarlog.*", "homeassistant.components.somfy.*", "homeassistant.components.somfy_mylink.*", "homeassistant.components.sonarr.*",