Fix invalid Any annotations (#122212)

pull/122217/head
Marc Mueller 2024-07-20 02:46:27 +02:00 committed by GitHub
parent a46fffd550
commit 8e024ad20f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
"""The tests for lastfm."""
from typing import Any
from unittest.mock import patch
from pylast import PyLastError, Track
@ -91,7 +92,7 @@ class MockUser:
"""Get mock now playing."""
return self._now_playing_result
def get_friends(self) -> list[any]:
def get_friends(self) -> list[Any]:
"""Get mock friends."""
if len(self._friends) == 0:
raise PyLastError("network", "status", "Page not found")

View File

@ -740,9 +740,9 @@ async def test_outlet_power_readings(
device_payload: list[dict[str, Any]],
entity_id: str,
expected_unique_id: str,
expected_value: any,
expected_value: Any,
changed_data: dict | None,
expected_update_value: any,
expected_update_value: Any,
) -> None:
"""Test the outlet power reporting on PDU devices."""
assert len(hass.states.async_all()) == 13