Add type hints to integration tests (part 20) (#88179)
This commit is contained in:
parent
793e51ac76
commit
3a9adacdde
55 changed files with 537 additions and 292 deletions
|
@ -4,11 +4,12 @@ from __future__ import annotations
|
|||
from datetime import timedelta
|
||||
|
||||
from homeassistant.components import siren
|
||||
from homeassistant.components.recorder import Recorder
|
||||
from homeassistant.components.recorder.db_schema import StateAttributes, States
|
||||
from homeassistant.components.recorder.util import session_scope
|
||||
from homeassistant.components.siren import ATTR_AVAILABLE_TONES
|
||||
from homeassistant.const import ATTR_FRIENDLY_NAME
|
||||
from homeassistant.core import State
|
||||
from homeassistant.core import HomeAssistant, State
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
|
@ -16,7 +17,7 @@ from tests.common import async_fire_time_changed
|
|||
from tests.components.recorder.common import async_wait_recording_done
|
||||
|
||||
|
||||
async def test_exclude_attributes(recorder_mock, hass):
|
||||
async def test_exclude_attributes(recorder_mock: Recorder, hass: HomeAssistant) -> None:
|
||||
"""Test siren registered attributes to be excluded."""
|
||||
await async_setup_component(
|
||||
hass, siren.DOMAIN, {siren.DOMAIN: {"platform": "demo"}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue