mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add type hints to integration tests (j-m) (#87704)
This commit is contained in:
@@ -33,7 +33,7 @@ from homeassistant.const import (
|
||||
CONF_SLAVE,
|
||||
STATE_UNAVAILABLE,
|
||||
)
|
||||
from homeassistant.core import State
|
||||
from homeassistant.core import HomeAssistant, State
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from .conftest import TEST_ENTITY_NAME, ReadResult, do_next_cycle
|
||||
@@ -538,7 +538,9 @@ async def test_wrong_unpack_climate(hass, mock_do_cycle):
|
||||
assert hass.states.get(ENTITY_ID).state == STATE_UNAVAILABLE
|
||||
|
||||
|
||||
async def test_no_discovery_info_climate(hass, caplog):
|
||||
async def test_no_discovery_info_climate(
|
||||
hass: HomeAssistant, caplog: pytest.LogCaptureFixture
|
||||
) -> None:
|
||||
"""Test setup without discovery info."""
|
||||
assert CLIMATE_DOMAIN not in hass.config.components
|
||||
assert await async_setup_component(
|
||||
|
||||
Reference in New Issue
Block a user