mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Migrate rainmachine to use async_update_entry to alter config entries (#110377)
This commit is contained in:
parent
66607cd034
commit
fb622c6cc8
@ -507,7 +507,8 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
# 1 -> 2: Update unique IDs to be consistent across platform (including removing
|
||||
# the silly removal of colons in the MAC address that was added originally):
|
||||
if version == 1:
|
||||
version = entry.version = 2
|
||||
version = 2
|
||||
hass.config_entries.async_update_entry(entry, version=version)
|
||||
|
||||
@callback
|
||||
def migrate_unique_id(entity_entry: er.RegistryEntry) -> dict[str, Any]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user