mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add type hints to integration tests (j-m) (#87704)
This commit is contained in:
@@ -40,7 +40,7 @@ from homeassistant.const import (
|
||||
STATE_UNAVAILABLE,
|
||||
STATE_UNKNOWN,
|
||||
)
|
||||
from homeassistant.core import State
|
||||
from homeassistant.core import HomeAssistant, State
|
||||
from homeassistant.helpers import entity_registry as er
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
@@ -954,7 +954,9 @@ async def test_service_sensor_update(hass, mock_modbus, mock_ha):
|
||||
assert hass.states.get(ENTITY_ID).state == "32"
|
||||
|
||||
|
||||
async def test_no_discovery_info_sensor(hass, caplog):
|
||||
async def test_no_discovery_info_sensor(
|
||||
hass: HomeAssistant, caplog: pytest.LogCaptureFixture
|
||||
) -> None:
|
||||
"""Test setup without discovery info."""
|
||||
assert SENSOR_DOMAIN not in hass.config.components
|
||||
assert await async_setup_component(
|
||||
|
||||
Reference in New Issue
Block a user