Activate mypy for Norway_air (#53787)

This commit is contained in:
jan iversen 2021-08-02 15:07:27 +02:00 committed by GitHub
parent 4022d539fe
commit 857031df14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View File

@ -92,31 +92,31 @@ class AirSensor(AirQualityEntity):
"""Return the name of the sensor.""" """Return the name of the sensor."""
return self._name return self._name
@property @property # type: ignore
@round_state @round_state
def air_quality_index(self): def air_quality_index(self):
"""Return the Air Quality Index (AQI).""" """Return the Air Quality Index (AQI)."""
return self._api.data.get("aqi") return self._api.data.get("aqi")
@property @property # type: ignore
@round_state @round_state
def nitrogen_dioxide(self): def nitrogen_dioxide(self):
"""Return the NO2 (nitrogen dioxide) level.""" """Return the NO2 (nitrogen dioxide) level."""
return self._api.data.get("no2_concentration") return self._api.data.get("no2_concentration")
@property @property # type: ignore
@round_state @round_state
def ozone(self): def ozone(self):
"""Return the O3 (ozone) level.""" """Return the O3 (ozone) level."""
return self._api.data.get("o3_concentration") return self._api.data.get("o3_concentration")
@property @property # type: ignore
@round_state @round_state
def particulate_matter_2_5(self): def particulate_matter_2_5(self):
"""Return the particulate matter 2.5 level.""" """Return the particulate matter 2.5 level."""
return self._api.data.get("pm25_concentration") return self._api.data.get("pm25_concentration")
@property @property # type: ignore
@round_state @round_state
def particulate_matter_10(self): def particulate_matter_10(self):
"""Return the particulate matter 10 level.""" """Return the particulate matter 10 level."""

View File

@ -1528,9 +1528,6 @@ ignore_errors = true
[mypy-homeassistant.components.nmap_tracker.*] [mypy-homeassistant.components.nmap_tracker.*]
ignore_errors = true ignore_errors = true
[mypy-homeassistant.components.norway_air.*]
ignore_errors = true
[mypy-homeassistant.components.nsw_fuel_station.*] [mypy-homeassistant.components.nsw_fuel_station.*]
ignore_errors = true ignore_errors = true

View File

@ -109,7 +109,6 @@ IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.nightscout.*", "homeassistant.components.nightscout.*",
"homeassistant.components.nilu.*", "homeassistant.components.nilu.*",
"homeassistant.components.nmap_tracker.*", "homeassistant.components.nmap_tracker.*",
"homeassistant.components.norway_air.*",
"homeassistant.components.nsw_fuel_station.*", "homeassistant.components.nsw_fuel_station.*",
"homeassistant.components.nuki.*", "homeassistant.components.nuki.*",
"homeassistant.components.nws.*", "homeassistant.components.nws.*",