From 857031df148e745a92bbb7a86ca521a85774ce9f Mon Sep 17 00:00:00 2001 From: jan iversen Date: Mon, 2 Aug 2021 15:07:27 +0200 Subject: [PATCH] Activate mypy for Norway_air (#53787) --- homeassistant/components/norway_air/air_quality.py | 10 +++++----- mypy.ini | 3 --- script/hassfest/mypy_config.py | 1 - 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/norway_air/air_quality.py b/homeassistant/components/norway_air/air_quality.py index 480121846e9..8e829355ea0 100644 --- a/homeassistant/components/norway_air/air_quality.py +++ b/homeassistant/components/norway_air/air_quality.py @@ -92,31 +92,31 @@ class AirSensor(AirQualityEntity): """Return the name of the sensor.""" return self._name - @property + @property # type: ignore @round_state def air_quality_index(self): """Return the Air Quality Index (AQI).""" return self._api.data.get("aqi") - @property + @property # type: ignore @round_state def nitrogen_dioxide(self): """Return the NO2 (nitrogen dioxide) level.""" return self._api.data.get("no2_concentration") - @property + @property # type: ignore @round_state def ozone(self): """Return the O3 (ozone) level.""" return self._api.data.get("o3_concentration") - @property + @property # type: ignore @round_state def particulate_matter_2_5(self): """Return the particulate matter 2.5 level.""" return self._api.data.get("pm25_concentration") - @property + @property # type: ignore @round_state def particulate_matter_10(self): """Return the particulate matter 10 level.""" diff --git a/mypy.ini b/mypy.ini index 32d6e7f106c..9e87e1466bf 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1528,9 +1528,6 @@ ignore_errors = true [mypy-homeassistant.components.nmap_tracker.*] ignore_errors = true -[mypy-homeassistant.components.norway_air.*] -ignore_errors = true - [mypy-homeassistant.components.nsw_fuel_station.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 410754e57bc..09c1280c472 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -109,7 +109,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.nightscout.*", "homeassistant.components.nilu.*", "homeassistant.components.nmap_tracker.*", - "homeassistant.components.norway_air.*", "homeassistant.components.nsw_fuel_station.*", "homeassistant.components.nuki.*", "homeassistant.components.nws.*",