mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Avoid calling entry.async_migrate in sonarr tests (#113557)
We should setup the the config entry instead of calling the migrator directly This fix was reverted out in #113553
This commit is contained in:
parent
03bb791080
commit
88f04bb3b4
@ -105,7 +105,9 @@ async def test_migrate_config_entry(hass: HomeAssistant) -> None:
|
||||
assert entry.version == 1
|
||||
assert not entry.unique_id
|
||||
|
||||
await entry.async_migrate(hass)
|
||||
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()
|
||||
|
||||
assert entry.data == {
|
||||
CONF_API_KEY: "MOCK_API_KEY",
|
||||
|
Loading…
x
Reference in New Issue
Block a user