Skip to content

Commit

Permalink
Fix migration to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
LavermanJJ committed Aug 31, 2023
1 parent 4339815 commit 1f2a7e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/solarfocus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ async def async_migrate_entry(hass, config_entry: ConfigEntry):
del new_options["pelletsboiler"]

config_entry.version = 5
hass.config_entries.async_update_entry(
config_entry, data=new_data, options=new_options
)

_LOGGER.info("Migration to version %s successful", config_entry.version)
_LOGGER.debug(
Expand Down

0 comments on commit 1f2a7e7

Please sign in to comment.