mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Harmony: set confirm only (#47617)
This commit is contained in:
parent
1dd35ff059
commit
5d7b53603f
@ -119,6 +119,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
self.harmony_config, {}
|
self.harmony_config, {}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
self._set_confirm_only()
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="link",
|
step_id="link",
|
||||||
errors=errors,
|
errors=errors,
|
||||||
|
@ -74,6 +74,10 @@ async def test_form_ssdp(hass):
|
|||||||
"host": "Harmony Hub",
|
"host": "Harmony Hub",
|
||||||
"name": "192.168.1.12",
|
"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(
|
with patch(
|
||||||
"homeassistant.components.harmony.util.HarmonyAPI",
|
"homeassistant.components.harmony.util.HarmonyAPI",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user