Add confirmation to Cast/Sonos/iOS config entries (#16769)
* Add confirmation to Cast/Sonos/iOS config entries * Remove redundant code
This commit is contained in:
1 parent
213171769d
commit
8b42d0c471
5 files changed
+59
-33
No files matched your search
@@ -30,6 +30,12 @@ async def test_creating_entry_sets_up_sensor(hass):
|
||||
return_value=mock_coro(True)) as mock_setup:
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
ios.DOMAIN, context={'source': config_entries.SOURCE_USER})
|
||||
|
||||
# Confirmation form
|
||||
assert result['type'] == data_entry_flow.RESULT_TYPE_FORM
|
||||
|
||||
result = await hass.config_entries.flow.async_configure(
|
||||
result['flow_id'], {})
|
||||
assert result['type'] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
|
||||
|
||||
await hass.async_block_till_done()
|
||||
|
||||
Reference in new issue
Block a user