mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Bump aiohttp to 3.10.11 (#130483)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
parent
c16fb9c93d
commit
cc45793896
@ -5,7 +5,7 @@ aiodiscover==2.1.0
|
||||
aiodns==3.2.0
|
||||
aiohasupervisor==0.2.1
|
||||
aiohttp-fast-zlib==0.1.1
|
||||
aiohttp==3.10.10
|
||||
aiohttp==3.10.11
|
||||
aiohttp_cors==0.7.0
|
||||
aiozoneinfo==0.2.1
|
||||
astral==2.2
|
||||
|
@ -28,7 +28,7 @@ dependencies = [
|
||||
# change behavior based on presence of supervisor. Deprecated with #127228
|
||||
# Lib can be removed with 2025.11
|
||||
"aiohasupervisor==0.2.1",
|
||||
"aiohttp==3.10.10",
|
||||
"aiohttp==3.10.11",
|
||||
"aiohttp_cors==0.7.0",
|
||||
"aiohttp-fast-zlib==0.1.1",
|
||||
"aiozoneinfo==0.2.1",
|
||||
|
@ -5,7 +5,7 @@
|
||||
# Home Assistant Core
|
||||
aiodns==3.2.0
|
||||
aiohasupervisor==0.2.1
|
||||
aiohttp==3.10.10
|
||||
aiohttp==3.10.11
|
||||
aiohttp_cors==0.7.0
|
||||
aiohttp-fast-zlib==0.1.1
|
||||
aiozoneinfo==0.2.1
|
||||
|
@ -1,10 +1,8 @@
|
||||
"""Test the Advantage Air Binary Sensor Platform."""
|
||||
|
||||
from datetime import timedelta
|
||||
from unittest.mock import AsyncMock
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
from homeassistant.components.advantage_air import ADVANTAGE_AIR_SYNC_INTERVAL
|
||||
from homeassistant.config_entries import RELOAD_AFTER_UPDATE_DELAY
|
||||
from homeassistant.const import STATE_OFF, STATE_ON
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
@ -70,22 +68,14 @@ async def test_binary_sensor_async_setup_entry(
|
||||
assert not hass.states.get(entity_id)
|
||||
|
||||
mock_get.reset_mock()
|
||||
entity_registry.async_update_entity(entity_id=entity_id, disabled_by=None)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
async_fire_time_changed(
|
||||
hass,
|
||||
dt_util.utcnow() + timedelta(seconds=ADVANTAGE_AIR_SYNC_INTERVAL + 1),
|
||||
)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert len(mock_get.mock_calls) == 1
|
||||
with patch("homeassistant.config_entries.RELOAD_AFTER_UPDATE_DELAY", 1):
|
||||
entity_registry.async_update_entity(entity_id=entity_id, disabled_by=None)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
async_fire_time_changed(
|
||||
hass,
|
||||
dt_util.utcnow() + timedelta(seconds=RELOAD_AFTER_UPDATE_DELAY + 1),
|
||||
)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert len(mock_get.mock_calls) == 2
|
||||
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=2))
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert len(mock_get.mock_calls) == 1
|
||||
|
||||
state = hass.states.get(entity_id)
|
||||
assert state
|
||||
@ -101,22 +91,14 @@ async def test_binary_sensor_async_setup_entry(
|
||||
assert not hass.states.get(entity_id)
|
||||
|
||||
mock_get.reset_mock()
|
||||
entity_registry.async_update_entity(entity_id=entity_id, disabled_by=None)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
async_fire_time_changed(
|
||||
hass,
|
||||
dt_util.utcnow() + timedelta(seconds=ADVANTAGE_AIR_SYNC_INTERVAL + 1),
|
||||
)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert len(mock_get.mock_calls) == 1
|
||||
with patch("homeassistant.config_entries.RELOAD_AFTER_UPDATE_DELAY", 1):
|
||||
entity_registry.async_update_entity(entity_id=entity_id, disabled_by=None)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
async_fire_time_changed(
|
||||
hass,
|
||||
dt_util.utcnow() + timedelta(seconds=RELOAD_AFTER_UPDATE_DELAY + 1),
|
||||
)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert len(mock_get.mock_calls) == 2
|
||||
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=2))
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert len(mock_get.mock_calls) == 1
|
||||
|
||||
state = hass.states.get(entity_id)
|
||||
assert state
|
||||
|
@ -1,15 +1,13 @@
|
||||
"""Test the Advantage Air Sensor Platform."""
|
||||
|
||||
from datetime import timedelta
|
||||
from unittest.mock import AsyncMock
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
from homeassistant.components.advantage_air import ADVANTAGE_AIR_SYNC_INTERVAL
|
||||
from homeassistant.components.advantage_air.const import DOMAIN as ADVANTAGE_AIR_DOMAIN
|
||||
from homeassistant.components.advantage_air.sensor import (
|
||||
ADVANTAGE_AIR_SERVICE_SET_TIME_TO,
|
||||
ADVANTAGE_AIR_SET_COUNTDOWN_VALUE,
|
||||
)
|
||||
from homeassistant.config_entries import RELOAD_AFTER_UPDATE_DELAY
|
||||
from homeassistant.const import ATTR_ENTITY_ID
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
@ -124,23 +122,15 @@ async def test_sensor_platform_disabled_entity(
|
||||
|
||||
assert not hass.states.get(entity_id)
|
||||
|
||||
entity_registry.async_update_entity(entity_id=entity_id, disabled_by=None)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
mock_get.reset_mock()
|
||||
|
||||
async_fire_time_changed(
|
||||
hass,
|
||||
dt_util.utcnow() + timedelta(seconds=ADVANTAGE_AIR_SYNC_INTERVAL + 1),
|
||||
)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert len(mock_get.mock_calls) == 1
|
||||
with patch("homeassistant.config_entries.RELOAD_AFTER_UPDATE_DELAY", 1):
|
||||
entity_registry.async_update_entity(entity_id=entity_id, disabled_by=None)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
|
||||
async_fire_time_changed(
|
||||
hass,
|
||||
dt_util.utcnow() + timedelta(seconds=RELOAD_AFTER_UPDATE_DELAY + 1),
|
||||
)
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert len(mock_get.mock_calls) == 2
|
||||
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=2))
|
||||
await hass.async_block_till_done(wait_background_tasks=True)
|
||||
assert len(mock_get.mock_calls) == 1
|
||||
|
||||
state = hass.states.get(entity_id)
|
||||
assert state
|
||||
|
@ -275,7 +275,9 @@ async def test_limit_refetch(
|
||||
|
||||
with (
|
||||
pytest.raises(aiohttp.ServerTimeoutError),
|
||||
patch("asyncio.timeout", side_effect=TimeoutError()),
|
||||
patch.object(
|
||||
client.session._connector, "connect", side_effect=asyncio.TimeoutError
|
||||
),
|
||||
):
|
||||
resp = await client.get("/api/camera_proxy/camera.config_test")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user