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

Enable Ruff A001 (#115654)

This commit is contained in:
Sid
2024-04-21 23:25:27 +02:00
committed by GitHub
parent 8754b12d08
commit 895f73d8e4
36 changed files with 347 additions and 321 deletions

View File

@@ -36,7 +36,10 @@ def create_mock_api_discovery(aioclient_mock, bridges):
"""Patch aiohttp responses with fake data for bridge discovery."""
aioclient_mock.get(
URL_NUPNP,
json=[{"internalipaddress": host, "id": id} for (host, id) in bridges],
json=[
{"internalipaddress": host, "id": bridge_id}
for (host, bridge_id) in bridges
],
)
for host, bridge_id in bridges:
aioclient_mock.get(