Skip to content

Commit

Permalink
Improve type hints in template config_flow tests (#126803)
Browse files Browse the repository at this point in the history
Improve type hints in template tests
  • Loading branch information
epenet authored Sep 26, 2024
1 parent 77642b9 commit 6c539cd
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tests/components/template/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@
@pytest.mark.freeze_time("2024-07-09 00:00:00+00:00")
async def test_config_flow(
hass: HomeAssistant,
template_type,
state_template,
template_state,
input_states,
input_attributes,
extra_input,
extra_options,
extra_attrs,
template_type: str,
state_template: dict[str, Any],
template_state: str,
input_states: dict[str, Any],
input_attributes: dict[str, Any],
extra_input: dict[str, Any],
extra_options: dict[str, Any],
extra_attrs: dict[str, Any],
) -> None:
"""Test the config flow."""
input_entities = ["one", "two"]
Expand Down Expand Up @@ -527,14 +527,14 @@ def get_suggested(schema, key):
@pytest.mark.freeze_time("2024-07-09 00:00:00+00:00")
async def test_options(
hass: HomeAssistant,
template_type,
old_state_template,
new_state_template,
template_state,
input_states,
extra_options,
options_options,
key_template,
template_type: str,
old_state_template: dict[str, Any],
new_state_template: dict[str, Any],
template_state: list[str],
input_states: dict[str, Any],
extra_options: dict[str, Any],
options_options: dict[str, Any],
key_template: str,
) -> None:
"""Test reconfiguring."""
input_entities = ["one", "two"]
Expand Down Expand Up @@ -656,7 +656,7 @@ async def test_config_flow_preview(
template_type: str,
state_template: str,
extra_user_input: dict[str, Any],
input_states: list[str],
input_states: dict[str, Any],
template_states: str,
extra_attributes: list[dict[str, Any]],
listeners: list[list[str]],
Expand Down Expand Up @@ -806,7 +806,7 @@ async def test_config_flow_preview_bad_input(
template_type: str,
state_template: str,
extra_user_input: dict[str, str],
error: str,
error: dict[str, str],
) -> None:
"""Test the config flow preview."""
client = await hass_ws_client(hass)
Expand Down Expand Up @@ -1118,7 +1118,7 @@ async def test_option_flow_preview(
new_state_template: str,
extra_config_flow_data: dict[str, Any],
extra_user_input: dict[str, Any],
input_states: list[str],
input_states: dict[str, Any],
template_state: str,
extra_attributes: dict[str, Any],
listeners: list[str],
Expand Down

0 comments on commit 6c539cd

Please sign in to comment.