mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 10:08:23 +00:00
rename device update
This commit is contained in:
parent
ffc0272a80
commit
2e213c9629
@ -215,9 +215,9 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ScrapeConfigEntry) ->
|
||||
devices = dr.async_entries_for_config_entry(device_reg, entry.entry_id)
|
||||
for device in devices:
|
||||
for identifier in device.identifiers:
|
||||
device_unique_id = identifier[1]
|
||||
if device_unique_id in old_to_new_sensor_id:
|
||||
new_unique_id = old_to_new_sensor_id[device_unique_id]
|
||||
old_device_unique_id = identifier[1]
|
||||
if old_device_unique_id in old_to_new_sensor_id:
|
||||
new_unique_id = old_to_new_sensor_id[old_device_unique_id]
|
||||
_LOGGER.debug(
|
||||
"Migrating device %s with identifiers %s to new unique id %s",
|
||||
device.id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user