Fix daikin missing key after migration (#96575)

Fix daikin migration
pull/96176/head^2
Aaron Collins 2023-07-16 00:17:02 +12:00 committed by GitHub
parent 62c5194bc8
commit d35e5db984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: