From ddab106391e7ca74758e61169ea04659967cf5f1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 12 Feb 2024 15:55:05 -0600 Subject: [PATCH] Migrate twentemilieu to use async_update_entry to alter config entries (#110419) --- tests/components/twentemilieu/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/twentemilieu/test_init.py b/tests/components/twentemilieu/test_init.py index b97578588bf..64377022713 100644 --- a/tests/components/twentemilieu/test_init.py +++ b/tests/components/twentemilieu/test_init.py @@ -53,8 +53,8 @@ async def test_update_config_entry_unique_id( mock_config_entry: MockConfigEntry, ) -> None: """Test the we update old config entries with an unique ID.""" - mock_config_entry.unique_id = None mock_config_entry.add_to_hass(hass) + hass.config_entries.async_update_entry(mock_config_entry, unique_id=None) await hass.config_entries.async_setup(mock_config_entry.entry_id) await hass.async_block_till_done()