diff --git a/tests/components/sonarr/test_init.py b/tests/components/sonarr/test_init.py index c48979ef05e..5c48f6c8445 100644 --- a/tests/components/sonarr/test_init.py +++ b/tests/components/sonarr/test_init.py @@ -98,6 +98,7 @@ async def test_migrate_config_entry(hass: HomeAssistant) -> None: CONF_BASE_PATH: "/base/", } entry = MockConfigEntry(domain=DOMAIN, data=legacy_config) + entry.add_to_hass(hass) assert entry.data == legacy_config assert entry.version == 1