mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 00:27:19 +00:00
Cleanup
This commit is contained in:
parent
b23e8b1c44
commit
bddb5d0816
@ -189,8 +189,6 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ScrapeConfigEntry) ->
|
|||||||
old_to_new_sensor_id[old_unique_id] = new_sub_entry.subentry_id
|
old_to_new_sensor_id[old_unique_id] = new_sub_entry.subentry_id
|
||||||
hass.config_entries.async_add_subentry(entry, new_sub_entry)
|
hass.config_entries.async_add_subentry(entry, new_sub_entry)
|
||||||
|
|
||||||
_LOGGER.debug("Old to new %s", old_to_new_sensor_id)
|
|
||||||
|
|
||||||
# Use the new sub config entry id as the unique id for the sensor entity
|
# Use the new sub config entry id as the unique id for the sensor entity
|
||||||
entity_reg = er.async_get(hass)
|
entity_reg = er.async_get(hass)
|
||||||
entities = er.async_entries_for_config_entry(entity_reg, entry.entry_id)
|
entities = er.async_entries_for_config_entry(entity_reg, entry.entry_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user