1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Upgrade pyupgrade to 2.21.2, apply its changes (#52987)

This commit is contained in:
Ville Skyttä
2021-07-19 11:46:09 +03:00
committed by GitHub
parent c96f01df1f
commit 470f2dd73f
73 changed files with 152 additions and 162 deletions

View File

@@ -42,7 +42,7 @@ async def test_list_devices(hass, client, registry):
await client.send_json({"id": 5, "type": "config/device_registry/list"})
msg = await client.receive_json()
dev1, dev2 = [entry.pop("id") for entry in msg["result"]]
dev1, dev2 = (entry.pop("id") for entry in msg["result"])
assert msg["result"] == [
{