Update typing (5) [tests] (#63926)

This commit is contained in:
Marc Mueller 2022-01-11 21:28:13 +01:00 committed by GitHub
parent fa7e787415
commit ef7316d8d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 31 additions and 29 deletions

View file

@ -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)