mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Bump lib version (#70803)
This commit is contained in:
parent
3016b5fbfc
commit
5d1e6c5905
@ -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.
|
||||
|
@ -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()
|
||||
|
||||
|
||||
|
@ -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.",
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user