Harmony: set confirm only (#47617)
This commit is contained in:
parent
1dd35ff059
commit
5d7b53603f
2 changed files with 5 additions and 0 deletions
|
@ -119,6 +119,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
self.harmony_config, {}
|
||||
)
|
||||
|
||||
self._set_confirm_only()
|
||||
return self.async_show_form(
|
||||
step_id="link",
|
||||
errors=errors,
|
||||
|
|
|
@ -74,6 +74,10 @@ async def test_form_ssdp(hass):
|
|||
"host": "Harmony Hub",
|
||||
"name": "192.168.1.12",
|
||||
}
|
||||
progress = hass.config_entries.flow.async_progress()
|
||||
assert len(progress) == 1
|
||||
assert progress[0]["flow_id"] == result["flow_id"]
|
||||
assert progress[0]["context"]["confirm_only"] is True
|
||||
|
||||
with patch(
|
||||
"homeassistant.components.harmony.util.HarmonyAPI",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue