mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 22:18:40 +00:00
Add type hints to integration tests (part 3) (#87844)
This commit is contained in:
@@ -30,7 +30,7 @@ ENTITY_2 = "climate.test2"
|
||||
|
||||
|
||||
@pytest.mark.parametrize("state", [HVACMode.AUTO, HVACMode.HEAT, HVACMode.OFF])
|
||||
async def test_with_hvac_mode(hass, state):
|
||||
async def test_with_hvac_mode(hass: HomeAssistant, state) -> None:
|
||||
"""Test that state different hvac states."""
|
||||
calls = async_mock_service(hass, DOMAIN, SERVICE_SET_HVAC_MODE)
|
||||
|
||||
@@ -105,7 +105,7 @@ async def test_state_with_context(hass: HomeAssistant) -> None:
|
||||
(SERVICE_SET_TEMPERATURE, ATTR_TARGET_TEMP_LOW),
|
||||
],
|
||||
)
|
||||
async def test_attribute(hass, service, attribute):
|
||||
async def test_attribute(hass: HomeAssistant, service, attribute) -> None:
|
||||
"""Test that service call is made for each attribute."""
|
||||
calls_1 = async_mock_service(hass, DOMAIN, service)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user