Migrate lametric to use async_update_entry to alter config entries (#110313)

This commit is contained in:
J. Nick Koston 2024-02-12 01:27:05 -06:00 committed by GitHub
parent d6ba7bf506
commit 322b8b5be0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -813,8 +813,8 @@ async def test_reauth_cloud_abort_device_not_found(
mock_config_entry: MockConfigEntry,
) -> None:
"""Test reauth flow importing api keys from the cloud."""
mock_config_entry.unique_id = "UKNOWN_DEVICE"
mock_config_entry.add_to_hass(hass)
hass.config_entries.async_update_entry(mock_config_entry, unique_id="UKNOWN_DEVICE")
result = await hass.config_entries.flow.async_init(
DOMAIN,