mirror of
https://github.com/home-assistant/core.git
synced 2025-08-26 07:51:32 +02:00
committed by
Franck Nijhof
parent
173a61bdff
commit
b193b5667b
@@ -139,7 +139,7 @@ async def async_migrate_unique_id(
|
||||
dev_reg = dr.async_get(hass)
|
||||
old_unique_id = config_entry.unique_id
|
||||
new_unique_id = api.device.mac
|
||||
new_name = api.device.values["name"]
|
||||
new_name = api.device.values.get("name")
|
||||
|
||||
@callback
|
||||
def _update_unique_id(entity_entry: er.RegistryEntry) -> dict[str, str] | None:
|
||||
|
Reference in New Issue
Block a user