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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user