Bump aioairq to 0.3.1 (#104659)
This commit is contained in:
parent
a9a95ad881
commit
68722ce662
6 changed files with 6 additions and 9 deletions
|
@ -3,7 +3,6 @@ from typing import Final
|
|||
|
||||
DOMAIN: Final = "airq"
|
||||
MANUFACTURER: Final = "CorantGmbH"
|
||||
TARGET_ROUTE: Final = "average"
|
||||
CONCENTRATION_GRAMS_PER_CUBIC_METER: Final = "g/m³"
|
||||
ACTIVITY_BECQUEREL_PER_CUBIC_METER: Final = "Bq/m³"
|
||||
UPDATE_INTERVAL: float = 10.0
|
||||
|
|
|
@ -13,7 +13,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
|||
from homeassistant.helpers.device_registry import DeviceInfo
|
||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
|
||||
|
||||
from .const import DOMAIN, MANUFACTURER, TARGET_ROUTE, UPDATE_INTERVAL
|
||||
from .const import DOMAIN, MANUFACTURER, UPDATE_INTERVAL
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -56,6 +56,4 @@ class AirQCoordinator(DataUpdateCoordinator):
|
|||
hw_version=info["hw_version"],
|
||||
)
|
||||
)
|
||||
|
||||
data = await self.airq.get(TARGET_ROUTE)
|
||||
return self.airq.drop_uncertainties_from_data(data)
|
||||
return await self.airq.get_latest_data()
|
||||
|
|
|
@ -7,5 +7,5 @@
|
|||
"integration_type": "hub",
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["aioairq"],
|
||||
"requirements": ["aioairq==0.2.4"]
|
||||
"requirements": ["aioairq==0.3.1"]
|
||||
}
|
||||
|
|
|
@ -185,7 +185,7 @@ aio-geojson-usgs-earthquakes==0.2
|
|||
aio-georss-gdacs==0.8
|
||||
|
||||
# homeassistant.components.airq
|
||||
aioairq==0.2.4
|
||||
aioairq==0.3.1
|
||||
|
||||
# homeassistant.components.airzone_cloud
|
||||
aioairzone-cloud==0.3.6
|
||||
|
|
|
@ -164,7 +164,7 @@ aio-geojson-usgs-earthquakes==0.2
|
|||
aio-georss-gdacs==0.8
|
||||
|
||||
# homeassistant.components.airq
|
||||
aioairq==0.2.4
|
||||
aioairq==0.3.1
|
||||
|
||||
# homeassistant.components.airzone_cloud
|
||||
aioairzone-cloud==0.3.6
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""Test the air-Q config flow."""
|
||||
from unittest.mock import patch
|
||||
|
||||
from aioairq.core import DeviceInfo, InvalidAuth, InvalidInput
|
||||
from aioairq import DeviceInfo, InvalidAuth, InvalidInput
|
||||
from aiohttp.client_exceptions import ClientConnectionError
|
||||
import pytest
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue