From 369616a6c38f73f8f1c89f83b995e149abc75297 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sat, 6 Feb 2021 12:19:41 +0100 Subject: [PATCH] Exclude disabled rfxtrx entities from async_entries_for_device (#46102) --- homeassistant/components/rfxtrx/config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/rfxtrx/config_flow.py b/homeassistant/components/rfxtrx/config_flow.py index 5eeb9b38411..da4d6447e76 100644 --- a/homeassistant/components/rfxtrx/config_flow.py +++ b/homeassistant/components/rfxtrx/config_flow.py @@ -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