From bb9ffa758d9fe863d8074cb9bfe23170529d30ff Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 12 Feb 2024 15:30:01 -0600 Subject: [PATCH] Ensure sonarr tests add config entry before updating it (#110422) --- tests/components/sonarr/test_init.py | 1 + 1 file changed, 1 insertion(+) 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