Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump aiohttp to 3.9.3 #109025

Merged
merged 4 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/package_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
aiodiscover==1.6.0
aiohttp-fast-url-dispatcher==0.3.0
aiohttp-zlib-ng==0.3.1
aiohttp==3.9.1
aiohttp==3.9.3
aiohttp_cors==0.7.0
astral==2.2
async-upnp-client==0.38.1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
]
requires-python = ">=3.11.0"
dependencies = [
"aiohttp==3.9.1",
"aiohttp==3.9.3",
"aiohttp_cors==0.7.0",
"aiohttp-fast-url-dispatcher==0.3.0",
"aiohttp-zlib-ng==0.3.1",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-c homeassistant/package_constraints.txt

# Home Assistant Core
aiohttp==3.9.1
aiohttp==3.9.3
aiohttp_cors==0.7.0
aiohttp-fast-url-dispatcher==0.3.0
aiohttp-zlib-ng==0.3.1
Expand Down
2 changes: 1 addition & 1 deletion tests/components/websocket_api/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async def test_auth_close_after_revoke(
hass.auth.async_remove_refresh_token(refresh_token)

msg = await websocket_client.receive()
assert msg.type == aiohttp.WSMsgType.CLOSE
assert msg.type == aiohttp.WSMsgType.CLOSED
assert websocket_client.closed


Expand Down
6 changes: 3 additions & 3 deletions tests/components/websocket_api/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def test_pending_msg_overflow(
for idx in range(10):
await websocket_client.send_json({"id": idx + 1, "type": "ping"})
msg = await websocket_client.receive()
assert msg.type == WSMsgType.close
assert msg.type == WSMsgType.CLOSED


async def test_cleanup_on_cancellation(
Expand Down Expand Up @@ -248,7 +248,7 @@ def instantiate_handler(*args):
)

msg = await websocket_client.receive()
assert msg.type == WSMsgType.close
assert msg.type == WSMsgType.CLOSED
assert "Client unable to keep up with pending messages" in caplog.text
assert "Stayed over 5 for 5 seconds" in caplog.text
assert "overload" in caplog.text
Expand Down Expand Up @@ -296,7 +296,7 @@ def instantiate_handler(*args):
msg = await websocket_client.receive()
assert msg.type == WSMsgType.TEXT
msg = await websocket_client.receive()
assert msg.type == WSMsgType.close
assert msg.type == WSMsgType.CLOSED
assert "Client unable to keep up with pending messages" not in caplog.text


Expand Down
2 changes: 1 addition & 1 deletion tests/components/websocket_api/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def test_quiting_hass(hass: HomeAssistant, websocket_client) -> None:

msg = await websocket_client.receive()

assert msg.type == WSMsgType.CLOSE
assert msg.type == WSMsgType.CLOSED


async def test_unknown_command(websocket_client) -> None:
Expand Down
Loading