mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Activate mypy for Norway_air (#53787)
This commit is contained in:
parent
4022d539fe
commit
857031df14
@ -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."""
|
||||||
|
3
mypy.ini
3
mypy.ini
@ -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
|
||||||
|
|
||||||
|
@ -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.*",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user