mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
parent
62c5194bc8
commit
d35e5db984
@ -139,7 +139,7 @@ async def async_migrate_unique_id(
|
|||||||
dev_reg = dr.async_get(hass)
|
dev_reg = dr.async_get(hass)
|
||||||
old_unique_id = config_entry.unique_id
|
old_unique_id = config_entry.unique_id
|
||||||
new_unique_id = api.device.mac
|
new_unique_id = api.device.mac
|
||||||
new_name = api.device.values["name"]
|
new_name = api.device.values.get("name")
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def _update_unique_id(entity_entry: er.RegistryEntry) -> dict[str, str] | None:
|
def _update_unique_id(entity_entry: er.RegistryEntry) -> dict[str, str] | None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user