1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

0.106 Beta - provide correctly formatted placeholders (#32119)

This commit is contained in:
Kit Klein
2020-02-23 16:54:18 -05:00
committed by GitHub
parent 524a1a7587
commit d2d788631e
3 changed files with 92 additions and 5 deletions

View File

@@ -597,6 +597,9 @@ async def test_option_flow(hass, mock_panel):
)
assert result["type"] == "form"
assert result["step_id"] == "options_binary"
assert result["description_placeholders"] == {
"zone": "Zone 2",
}
# zone 2
result = await hass.config_entries.options.async_configure(
@@ -604,6 +607,9 @@ async def test_option_flow(hass, mock_panel):
)
assert result["type"] == "form"
assert result["step_id"] == "options_binary"
assert result["description_placeholders"] == {
"zone": "Zone 6",
}
# zone 6
result = await hass.config_entries.options.async_configure(
@@ -612,6 +618,9 @@ async def test_option_flow(hass, mock_panel):
)
assert result["type"] == "form"
assert result["step_id"] == "options_digital"
assert result["description_placeholders"] == {
"zone": "Zone 3",
}
# zone 3
result = await hass.config_entries.options.async_configure(
@@ -619,6 +628,9 @@ async def test_option_flow(hass, mock_panel):
)
assert result["type"] == "form"
assert result["step_id"] == "options_switch"
assert result["description_placeholders"] == {
"zone": "Zone 4",
}
# zone 4
result = await hass.config_entries.options.async_configure(
@@ -626,6 +638,9 @@ async def test_option_flow(hass, mock_panel):
)
assert result["type"] == "form"
assert result["step_id"] == "options_switch"
assert result["description_placeholders"] == {
"zone": "OUT",
}
# zone out
result = await hass.config_entries.options.async_configure(