Migrate rainmachine to use async_update_entry to alter config entries (#110377)
This commit is contained in:
parent
66607cd034
commit
fb622c6cc8
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue