mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Store config entry id in entity registry (#14851)
* Store config entry id in entity registry * Lint
This commit is contained in:
committed by
Pascal Vizeli
parent
bb4d1773d3
commit
67d137cfd5
@@ -86,7 +86,8 @@ def test_save_timer_reset_on_subsequent_save(hass, registry):
|
||||
def test_loading_saving_data(hass, registry):
|
||||
"""Test that we load/save data correctly."""
|
||||
orig_entry1 = registry.async_get_or_create('light', 'hue', '1234')
|
||||
orig_entry2 = registry.async_get_or_create('light', 'hue', '5678')
|
||||
orig_entry2 = registry.async_get_or_create(
|
||||
'light', 'hue', '5678', config_entry_id='mock-id')
|
||||
|
||||
assert len(registry.entities) == 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user