mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Improve type hints in modbus tests (#123795)
This commit is contained in:
parent
30994710e6
commit
8e0dfbcd13
@ -192,7 +192,9 @@ async def mock_test_state_fixture(
|
||||
|
||||
|
||||
@pytest.fixture(name="mock_modbus_ha")
|
||||
async def mock_modbus_ha_fixture(hass, mock_modbus):
|
||||
async def mock_modbus_ha_fixture(
|
||||
hass: HomeAssistant, mock_modbus: mock.AsyncMock
|
||||
) -> mock.AsyncMock:
|
||||
"""Load homeassistant to allow service calls."""
|
||||
assert await async_setup_component(hass, "homeassistant", {})
|
||||
await hass.async_block_till_done()
|
||||
|
@ -1335,7 +1335,7 @@ async def test_wrap_sensor(hass: HomeAssistant, mock_do_cycle, expected) -> None
|
||||
|
||||
|
||||
@pytest.fixture(name="mock_restore")
|
||||
async def mock_restore(hass):
|
||||
async def mock_restore(hass: HomeAssistant) -> None:
|
||||
"""Mock restore cache."""
|
||||
mock_restore_cache_with_extra_data(
|
||||
hass,
|
||||
|
Loading…
x
Reference in New Issue
Block a user