mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix invalid Any annotations (#122212)
This commit is contained in:
parent
a46fffd550
commit
8e024ad20f
@ -1,5 +1,6 @@
|
|||||||
"""The tests for lastfm."""
|
"""The tests for lastfm."""
|
||||||
|
|
||||||
|
from typing import Any
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
from pylast import PyLastError, Track
|
from pylast import PyLastError, Track
|
||||||
@ -91,7 +92,7 @@ class MockUser:
|
|||||||
"""Get mock now playing."""
|
"""Get mock now playing."""
|
||||||
return self._now_playing_result
|
return self._now_playing_result
|
||||||
|
|
||||||
def get_friends(self) -> list[any]:
|
def get_friends(self) -> list[Any]:
|
||||||
"""Get mock friends."""
|
"""Get mock friends."""
|
||||||
if len(self._friends) == 0:
|
if len(self._friends) == 0:
|
||||||
raise PyLastError("network", "status", "Page not found")
|
raise PyLastError("network", "status", "Page not found")
|
||||||
|
@ -740,9 +740,9 @@ async def test_outlet_power_readings(
|
|||||||
device_payload: list[dict[str, Any]],
|
device_payload: list[dict[str, Any]],
|
||||||
entity_id: str,
|
entity_id: str,
|
||||||
expected_unique_id: str,
|
expected_unique_id: str,
|
||||||
expected_value: any,
|
expected_value: Any,
|
||||||
changed_data: dict | None,
|
changed_data: dict | None,
|
||||||
expected_update_value: any,
|
expected_update_value: Any,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test the outlet power reporting on PDU devices."""
|
"""Test the outlet power reporting on PDU devices."""
|
||||||
assert len(hass.states.async_all()) == 13
|
assert len(hass.states.async_all()) == 13
|
||||||
|
Loading…
x
Reference in New Issue
Block a user