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

pull/110416/head^2
J. Nick Koston 2024-02-12 15:30:01 -06:00 committed by GitHub
parent 8282018260
commit bb9ffa758d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

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