Skip to content

Commit

Permalink
Bump aiohttp to 3.9.3 (#109025)
Browse files Browse the repository at this point in the history
Co-authored-by: Joost Lekkerkerker <[email protected]>
  • Loading branch information
2 people authored and frenck committed Jan 30, 2024
1 parent 923259a commit 8429a79
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
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.1.3
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.1.3",
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.1.3
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(
await 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

0 comments on commit 8429a79

Please sign in to comment.