Skip to content

Commit

Permalink
Migrate openuv to use async_update_entry to alter config entries (#11…
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Feb 12, 2024
1 parent 1764c03 commit 66607cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/openuv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
if version == 1:
data.pop(CONF_BINARY_SENSORS, None)
data.pop(CONF_SENSORS, None)
version = entry.version = 2
hass.config_entries.async_update_entry(entry, data=data)
version = 2
hass.config_entries.async_update_entry(entry, data=data, version=2)
LOGGER.debug("Migration to version %s successful", version)

return True
Expand Down

0 comments on commit 66607cd

Please sign in to comment.