diff --git a/tests/components/luftdaten/test_init.py b/tests/components/luftdaten/test_init.py index 83902b19cd7..40e40bcd137 100644 --- a/tests/components/luftdaten/test_init.py +++ b/tests/components/luftdaten/test_init.py @@ -66,8 +66,8 @@ async def test_setting_unique_id( hass: HomeAssistant, mock_config_entry: MockConfigEntry, mock_luftdaten: MagicMock ) -> None: """Test we set unique ID if not set yet.""" - 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()