Skip to content

Commit

Permalink
fix: misplaced if statment in config migration (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 authored Jun 22, 2024
1 parent 475c9e2 commit bb1ff16
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions custom_components/mail_and_packages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,6 @@ async def async_migrate_entry(hass, config_entry):
if updated_config[CONF_AMAZON_FWDS] == ['""']:
updated_config[CONF_AMAZON_FWDS] = DEFAULT_AMAZON_FWDS

if updated_config != config_entry.data:
hass.config_entries.async_update_entry(
config_entry, data=updated_config, version=new_version
)

if version == 5:
_LOGGER.debug("Migrating from version %s", version)
updated_config = config_entry.data.copy()
Expand Down

0 comments on commit bb1ff16

Please sign in to comment.