Skip to content

Commit

Permalink
whateverr
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Dec 4, 2024
1 parent ec9b84b commit b66f78d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/tests_new/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_old/test_init_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_old/test_init_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions tests/tests_old/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit b66f78d

Please sign in to comment.