mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add missing hass type hint in component tests (y) (#124286)
This commit is contained in:
parent
69a5605551
commit
14775c822f
@ -1,6 +1,7 @@
|
||||
"""Tests for the yandex transport platform."""
|
||||
|
||||
import json
|
||||
from typing import Any
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
@ -76,7 +77,9 @@ SUBURBAN_RESULT_STATE = dt_util.utc_from_timestamp(1634984640).isoformat(
|
||||
)
|
||||
|
||||
|
||||
async def assert_setup_sensor(hass, config, count=1):
|
||||
async def assert_setup_sensor(
|
||||
hass: HomeAssistant, config: dict[str, Any], count: int = 1
|
||||
) -> None:
|
||||
"""Set up the sensor and assert it's been created."""
|
||||
with assert_setup_component(count):
|
||||
assert await async_setup_component(hass, sensor.DOMAIN, config)
|
||||
|
Loading…
x
Reference in New Issue
Block a user