mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix incorrect current_request_with_host type hint (#118809)
This commit is contained in:
parent
80975d7a63
commit
b09f3eb313
@ -113,8 +113,8 @@ class FakeConfigFlow(config_entry_oauth2_flow.AbstractOAuth2FlowHandler):
|
|||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def config_flow_handler(
|
def config_flow_handler(
|
||||||
hass: HomeAssistant, current_request_with_host: Any
|
hass: HomeAssistant, current_request_with_host: None
|
||||||
) -> Generator[FakeConfigFlow, None, None]:
|
) -> Generator[None, None, None]:
|
||||||
"""Fixture for a test config flow."""
|
"""Fixture for a test config flow."""
|
||||||
mock_platform(hass, f"{TEST_DOMAIN}.config_flow")
|
mock_platform(hass, f"{TEST_DOMAIN}.config_flow")
|
||||||
with mock_config_flow(TEST_DOMAIN, FakeConfigFlow):
|
with mock_config_flow(TEST_DOMAIN, FakeConfigFlow):
|
||||||
|
@ -95,8 +95,8 @@ class FakeOptionsFlow(silabs_multiprotocol_addon.OptionsFlowHandler):
|
|||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def config_flow_handler(
|
def config_flow_handler(
|
||||||
hass: HomeAssistant, current_request_with_host: Any
|
hass: HomeAssistant, current_request_with_host: None
|
||||||
) -> Generator[FakeConfigFlow, None, None]:
|
) -> Generator[None, None, None]:
|
||||||
"""Fixture for a test config flow."""
|
"""Fixture for a test config flow."""
|
||||||
mock_platform(hass, f"{TEST_DOMAIN}.config_flow")
|
mock_platform(hass, f"{TEST_DOMAIN}.config_flow")
|
||||||
with mock_config_flow(TEST_DOMAIN, FakeConfigFlow):
|
with mock_config_flow(TEST_DOMAIN, FakeConfigFlow):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user