Bump lib version (#70803)

This commit is contained in:
Maciej Bieniek 2022-04-26 18:12:54 +02:00 committed by GitHub
parent 3016b5fbfc
commit 5d1e6c5905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 11 deletions

View File

@ -108,10 +108,7 @@ class NAMDataUpdateCoordinator(DataUpdateCoordinator):
async def _async_update_data(self) -> NAMSensors:
"""Update data via library."""
try:
# Device firmware uses synchronous code and doesn't respond to http queries
# when reading data from sensors. The nettigo-air-quality library tries to
# get the data 4 times, so we use a longer than usual timeout here.
async with async_timeout.timeout(30):
async with async_timeout.timeout(10):
data = await self.nam.async_update()
# We do not need to catch AuthFailed exception here because sensor data is
# always available without authorization.

View File

@ -39,10 +39,8 @@ async def async_get_mac(hass: HomeAssistant, host: str, data: dict[str, Any]) ->
options = ConnectionOptions(host, data.get(CONF_USERNAME), data.get(CONF_PASSWORD))
nam = await NettigoAirMonitor.create(websession, options)
# Device firmware uses synchronous code and doesn't respond to http queries
# when reading data from sensors. The nettigo-air-monitor library tries to get
# the data 4 times, so we use a longer than usual timeout here.
async with async_timeout.timeout(30):
async with async_timeout.timeout(10):
return await nam.async_get_mac_address()

View File

@ -3,7 +3,7 @@
"name": "Nettigo Air Monitor",
"documentation": "https://www.home-assistant.io/integrations/nam",
"codeowners": ["@bieniu"],
"requirements": ["nettigo-air-monitor==1.2.1"],
"requirements": ["nettigo-air-monitor==1.2.2"],
"zeroconf": [
{
"type": "_http._tcp.local.",

View File

@ -1056,7 +1056,7 @@ netdisco==3.0.0
netmap==0.7.0.2
# homeassistant.components.nam
nettigo-air-monitor==1.2.1
nettigo-air-monitor==1.2.2
# homeassistant.components.neurio_energy
neurio==0.3.1

View File

@ -718,7 +718,7 @@ netdisco==3.0.0
netmap==0.7.0.2
# homeassistant.components.nam
nettigo-air-monitor==1.2.1
nettigo-air-monitor==1.2.2
# homeassistant.components.nexia
nexia==0.9.13