Bump ruff to 0.9.1 (#135197)

This commit is contained in:
Joost Lekkerkerker
2025-01-14 11:46:12 +01:00
committed by GitHub
parent 2b51ab1c75
commit 8db63adc11
49 changed files with 256 additions and 265 deletions

View File

@@ -1012,9 +1012,9 @@ async def test_media_permission_unauthorized(
client = await hass_client()
response = await client.get(media_url)
assert (
response.status == HTTPStatus.UNAUTHORIZED
), f"Response not matched: {response}"
assert response.status == HTTPStatus.UNAUTHORIZED, (
f"Response not matched: {response}"
)
async def test_multiple_devices(
@@ -1306,9 +1306,9 @@ async def test_media_store_load_filesystem_error(
response = await client.get(
f"/api/nest/event_media/{device.id}/{event_identifier}"
)
assert (
response.status == HTTPStatus.NOT_FOUND
), f"Response not matched: {response}"
assert response.status == HTTPStatus.NOT_FOUND, (
f"Response not matched: {response}"
)
@pytest.mark.parametrize(("device_traits", "cache_size"), [(BATTERY_CAMERA_TRAITS, 5)])