mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Bump aioairq to 0.3.1 (#104659)
This commit is contained in:
parent
a9a95ad881
commit
68722ce662
@ -3,7 +3,6 @@ from typing import Final
|
|||||||
|
|
||||||
DOMAIN: Final = "airq"
|
DOMAIN: Final = "airq"
|
||||||
MANUFACTURER: Final = "CorantGmbH"
|
MANUFACTURER: Final = "CorantGmbH"
|
||||||
TARGET_ROUTE: Final = "average"
|
|
||||||
CONCENTRATION_GRAMS_PER_CUBIC_METER: Final = "g/m³"
|
CONCENTRATION_GRAMS_PER_CUBIC_METER: Final = "g/m³"
|
||||||
ACTIVITY_BECQUEREL_PER_CUBIC_METER: Final = "Bq/m³"
|
ACTIVITY_BECQUEREL_PER_CUBIC_METER: Final = "Bq/m³"
|
||||||
UPDATE_INTERVAL: float = 10.0
|
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.device_registry import DeviceInfo
|
||||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
|
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__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -56,6 +56,4 @@ class AirQCoordinator(DataUpdateCoordinator):
|
|||||||
hw_version=info["hw_version"],
|
hw_version=info["hw_version"],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
return await self.airq.get_latest_data()
|
||||||
data = await self.airq.get(TARGET_ROUTE)
|
|
||||||
return self.airq.drop_uncertainties_from_data(data)
|
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
"integration_type": "hub",
|
"integration_type": "hub",
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["aioairq"],
|
"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
|
aio-georss-gdacs==0.8
|
||||||
|
|
||||||
# homeassistant.components.airq
|
# homeassistant.components.airq
|
||||||
aioairq==0.2.4
|
aioairq==0.3.1
|
||||||
|
|
||||||
# homeassistant.components.airzone_cloud
|
# homeassistant.components.airzone_cloud
|
||||||
aioairzone-cloud==0.3.6
|
aioairzone-cloud==0.3.6
|
||||||
|
@ -164,7 +164,7 @@ aio-geojson-usgs-earthquakes==0.2
|
|||||||
aio-georss-gdacs==0.8
|
aio-georss-gdacs==0.8
|
||||||
|
|
||||||
# homeassistant.components.airq
|
# homeassistant.components.airq
|
||||||
aioairq==0.2.4
|
aioairq==0.3.1
|
||||||
|
|
||||||
# homeassistant.components.airzone_cloud
|
# homeassistant.components.airzone_cloud
|
||||||
aioairzone-cloud==0.3.6
|
aioairzone-cloud==0.3.6
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"""Test the air-Q config flow."""
|
"""Test the air-Q config flow."""
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from aioairq.core import DeviceInfo, InvalidAuth, InvalidInput
|
from aioairq import DeviceInfo, InvalidAuth, InvalidInput
|
||||||
from aiohttp.client_exceptions import ClientConnectionError
|
from aiohttp.client_exceptions import ClientConnectionError
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user