Ensure sonarr tests add config entry before updating it (#110422)

This commit is contained in:
J. Nick Koston
2024-02-12 15:30:01 -06:00
committed by GitHub
parent 8282018260
commit bb9ffa758d

View File

@@ -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