From 322b8b5be0dde0286e47e711b9ca82874a0a224b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 12 Feb 2024 01:27:05 -0600 Subject: [PATCH] Migrate lametric to use async_update_entry to alter config entries (#110313) --- tests/components/lametric/test_config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/lametric/test_config_flow.py b/tests/components/lametric/test_config_flow.py index 0fa3a2d9838..4113d585ccc 100644 --- a/tests/components/lametric/test_config_flow.py +++ b/tests/components/lametric/test_config_flow.py @@ -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,