mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Migrate ridwell to use async_update_entry to alter config entries (#110380)
This commit is contained in:
parent
fb622c6cc8
commit
925e9eecce
@ -42,7 +42,8 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
# 1 -> 2: Update unique ID of existing, single sensor entity to be consistent with
|
# 1 -> 2: Update unique ID of existing, single sensor entity to be consistent with
|
||||||
# common format for platforms going forward:
|
# common format for platforms going forward:
|
||||||
if version == 1:
|
if version == 1:
|
||||||
version = entry.version = 2
|
version = 2
|
||||||
|
hass.config_entries.async_update_entry(entry, version=version)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def migrate_unique_id(entity_entry: er.RegistryEntry) -> dict[str, Any]:
|
def migrate_unique_id(entity_entry: er.RegistryEntry) -> dict[str, Any]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user