Store config entry id in entity registry (#14851)

* Store config entry id in entity registry

* Lint
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2018-06-07 20:23:09 +02:00
1 parent bb4d1773d3
commit 67d137cfd5
4 files changed
+31 -8

No files matched your search

+2 -1
View File
@@ -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