Revert "Avoid pre-importing config_flows if the integration does not … (#113553)
Revert "Avoid pre-importing config_flows if the integration does not support …"
This reverts commit 9940f51b95
.
This commit is contained in:
parent
77a94ea515
commit
e8de1a7031
7 changed files with 42 additions and 89 deletions
|
@ -105,9 +105,7 @@ async def test_migrate_config_entry(hass: HomeAssistant) -> None:
|
|||
assert entry.version == 1
|
||||
assert not entry.unique_id
|
||||
|
||||
with patch("homeassistant.components.sonarr.async_setup_entry", return_value=True):
|
||||
await hass.config_entries.async_setup(entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
await entry.async_migrate(hass)
|
||||
|
||||
assert entry.data == {
|
||||
CONF_API_KEY: "MOCK_API_KEY",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue