Migrate luftdaten to use async_update_entry to alter config entries (#110424)
This commit is contained in:
parent
ddab106391
commit
a3a1f8216c
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue