Fix invalid Any annotations (#122212)
parent
a46fffd550
commit
8e024ad20f
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue