forked from home-assistant/core
Bump gios library to version 1.0.2 (#52527)
This commit is contained in:
@@ -80,7 +80,7 @@ class GiosAirQuality(CoordinatorEntity, AirQualityEntity):
|
|||||||
@property
|
@property
|
||||||
def air_quality_index(self) -> str | None:
|
def air_quality_index(self) -> str | None:
|
||||||
"""Return the air quality index."""
|
"""Return the air quality index."""
|
||||||
return cast(Optional[str], self.coordinator.data.get(API_AQI, {}).get("value"))
|
return cast(Optional[str], self.coordinator.data.get(API_AQI).get("value"))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def particulate_matter_2_5(self) -> float | None:
|
def particulate_matter_2_5(self) -> float | None:
|
||||||
@@ -141,7 +141,7 @@ class GiosAirQuality(CoordinatorEntity, AirQualityEntity):
|
|||||||
if sensor in self.coordinator.data:
|
if sensor in self.coordinator.data:
|
||||||
self._attrs[f"{SENSOR_MAP[sensor]}_index"] = self.coordinator.data[
|
self._attrs[f"{SENSOR_MAP[sensor]}_index"] = self.coordinator.data[
|
||||||
sensor
|
sensor
|
||||||
]["index"]
|
].get("index")
|
||||||
self._attrs[ATTR_STATION] = self.coordinator.gios.station_name
|
self._attrs[ATTR_STATION] = self.coordinator.gios.station_name
|
||||||
return self._attrs
|
return self._attrs
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
"name": "GIO\u015a",
|
"name": "GIO\u015a",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/gios",
|
"documentation": "https://www.home-assistant.io/integrations/gios",
|
||||||
"codeowners": ["@bieniu"],
|
"codeowners": ["@bieniu"],
|
||||||
"requirements": ["gios==1.0.1"],
|
"requirements": ["gios==1.0.2"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
|
@@ -678,7 +678,7 @@ georss_qld_bushfire_alert_client==0.5
|
|||||||
getmac==0.8.2
|
getmac==0.8.2
|
||||||
|
|
||||||
# homeassistant.components.gios
|
# homeassistant.components.gios
|
||||||
gios==1.0.1
|
gios==1.0.2
|
||||||
|
|
||||||
# homeassistant.components.gitter
|
# homeassistant.components.gitter
|
||||||
gitterpy==0.1.7
|
gitterpy==0.1.7
|
||||||
|
@@ -384,7 +384,7 @@ georss_qld_bushfire_alert_client==0.5
|
|||||||
getmac==0.8.2
|
getmac==0.8.2
|
||||||
|
|
||||||
# homeassistant.components.gios
|
# homeassistant.components.gios
|
||||||
gios==1.0.1
|
gios==1.0.2
|
||||||
|
|
||||||
# homeassistant.components.glances
|
# homeassistant.components.glances
|
||||||
glances_api==0.2.0
|
glances_api==0.2.0
|
||||||
|
Reference in New Issue
Block a user