Exclude disabled rfxtrx entities from async_entries_for_device (#46102)
This commit is contained in:
parent
af4e6f856f
commit
369616a6c3
1 changed files with 3 additions and 1 deletions
|
@ -344,7 +344,9 @@ class OptionsFlow(config_entries.OptionsFlow):
|
|||
new_device_id = "_".join(x for x in new_device_data[CONF_DEVICE_ID])
|
||||
|
||||
entity_registry = await async_get_entity_registry(self.hass)
|
||||
entity_entries = async_entries_for_device(entity_registry, old_device)
|
||||
entity_entries = async_entries_for_device(
|
||||
entity_registry, old_device, include_disabled_entities=True
|
||||
)
|
||||
entity_migration_map = {}
|
||||
for entry in entity_entries:
|
||||
unique_id = entry.unique_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue