Update typing (5) [tests] (#63926)
This commit is contained in:
parent
fa7e787415
commit
ef7316d8d9
8 changed files with 31 additions and 29 deletions
|
@ -1,5 +1,5 @@
|
|||
"""Common fixtures for testing greeneye_monitor."""
|
||||
from typing import Any, Dict
|
||||
from typing import Any
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import pytest
|
||||
|
@ -20,7 +20,7 @@ def assert_sensor_state(
|
|||
hass: HomeAssistant,
|
||||
entity_id: str,
|
||||
expected_state: str,
|
||||
attributes: Dict[str, Any] = {},
|
||||
attributes: dict[str, Any] = {},
|
||||
) -> None:
|
||||
"""Assert that the given entity has the expected state and at least the provided attributes."""
|
||||
state = hass.states.get(entity_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue