Add monkeypatch type hints to switcher_kis tests (#121055)

* Add monkeypatch type hints to switch_kis

* Improve
This commit is contained in:
epenet 2024-07-03 22:49:01 +02:00 committed by GitHub
parent 7958c0825e
commit c9240b8e34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 31 additions and 17 deletions

View file

@ -23,7 +23,9 @@ from .consts import DUMMY_PLUG_DEVICE, DUMMY_WATER_HEATER_DEVICE
@pytest.mark.parametrize("mock_bridge", [[DUMMY_WATER_HEATER_DEVICE]], indirect=True)
async def test_switch(hass: HomeAssistant, mock_bridge, mock_api, monkeypatch) -> None:
async def test_switch(
hass: HomeAssistant, mock_bridge, mock_api, monkeypatch: pytest.MonkeyPatch
) -> None:
"""Test the switch."""
await init_integration(hass)
assert mock_bridge
@ -75,7 +77,7 @@ async def test_switch_control_fail(
hass: HomeAssistant,
mock_bridge,
mock_api,
monkeypatch,
monkeypatch: pytest.MonkeyPatch,
caplog: pytest.LogCaptureFixture,
) -> None:
"""Test switch control fail."""