mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
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:
committed by
Pascal Vizeli
parent
213171769d
commit
8b42d0c471
@@ -17,6 +17,12 @@ async def test_creating_entry_sets_up_media_player(hass):
|
||||
return_value=True):
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
cast.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