From b66f78dac3b25e363b259910c0c8b6fce97d64f0 Mon Sep 17 00:00:00 2001 From: David Bonnes Date: Wed, 4 Dec 2024 16:32:58 +0000 Subject: [PATCH] whateverr --- tests/tests_new/conftest.py | 2 +- tests/tests_old/test_init_config.py | 2 +- tests/tests_old/test_init_data.py | 2 +- tests/tests_old/test_services.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/tests_new/conftest.py b/tests/tests_new/conftest.py index 949cbfb..4402e93 100644 --- a/tests/tests_new/conftest.py +++ b/tests/tests_new/conftest.py @@ -42,7 +42,7 @@ def patches_for_tests(monkeypatch: pytest.MonkeyPatch) -> None: @pytest.fixture() # add hass fixture to ensure hass/rf use same event loop -async def rf(hass: HomeAssistant) -> AsyncGenerator[Any, None]: +async def rf(hass: HomeAssistant) -> AsyncGenerator[Any]: """Utilize a virtual evofw3-compatible gateway.""" rf = VirtualRf(2) diff --git a/tests/tests_old/test_init_config.py b/tests/tests_old/test_init_config.py index 4aea158..f298bdb 100644 --- a/tests/tests_old/test_init_config.py +++ b/tests/tests_old/test_init_config.py @@ -58,7 +58,7 @@ def pytest_generate_tests(metafunc: pytest.Metafunc) -> None: @pytest.fixture() # add hass fixture to ensure hass/rf use same event loop -async def rf(hass: HomeAssistant) -> AsyncGenerator[Any, None]: +async def rf(hass: HomeAssistant) -> AsyncGenerator[Any]: """Utilize a virtual evofw3-compatible gateway.""" rf = VirtualRf(2) diff --git a/tests/tests_old/test_init_data.py b/tests/tests_old/test_init_data.py index d4e3b4e..823c614 100644 --- a/tests/tests_old/test_init_data.py +++ b/tests/tests_old/test_init_data.py @@ -63,7 +63,7 @@ @pytest.fixture() # add hass fixture to ensure hass/rf use same event loop -async def rf(hass: HomeAssistant) -> AsyncGenerator[Any, None]: +async def rf(hass: HomeAssistant) -> AsyncGenerator[Any]: """Utilize a virtual evofw3-compatible gateway.""" rf = VirtualRf(2) diff --git a/tests/tests_old/test_services.py b/tests/tests_old/test_services.py index aac07ed..fac0c2c 100644 --- a/tests/tests_old/test_services.py +++ b/tests/tests_old/test_services.py @@ -262,7 +262,7 @@ async def _setup_via_entry_( @pytest.fixture() # need hass fixture to ensure hass/rf use same event loop -async def entry(hass: HomeAssistant) -> AsyncGenerator[ConfigEntry, None]: +async def entry(hass: HomeAssistant) -> AsyncGenerator[ConfigEntry]: """Set up the test bed.""" # Utilize a virtual evofw3-compatible gateway @@ -379,7 +379,7 @@ async def test_send_command(hass: HomeAssistant, entry: ConfigEntry, idx: str) - data = { "entity_id": "remote.40_123456", - **TESTS_SEND_COMMAND[idx], + **TESTS_SEND_COMMAND[idx], # type: ignore[dict-item] } await _test_entity_service_call( @@ -568,7 +568,7 @@ async def test_set_dhw_mode_good( ) -> None: data = { "entity_id": "water_heater.01_145038_hw", - **TESTS_SET_DHW_MODE_GOOD[idx], + **TESTS_SET_DHW_MODE_GOOD[idx], # type: ignore[dict-item] } await _test_entity_service_call(