1
0
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:
epenet
2023-02-10 16:05:01 +01:00
committed by GitHub
parent 22bfb99db4
commit fa7acb4f0d
50 changed files with 745 additions and 386 deletions

View File

@@ -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)