Skip to content

Commit

Permalink
Update migration log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
WillCodeForCats committed Aug 23, 2024
1 parent 41bcf75 commit ff32a77
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions custom_components/solaredge_modbus_multi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ async def async_remove_config_entry_device(

async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool:
"""Migrate old entry."""
_LOGGER.debug("Migrating from config version {config_entry.version}")
_LOGGER.debug(
"Migrating from config version "
f"{config_entry.version}.{config_entry.minor_version}"
)

if config_entry.version > 1:
return False
Expand Down Expand Up @@ -194,7 +197,8 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
)

_LOGGER.warning(
f"Migrated to config version {config_entry.version}.{config_entry.minor_version}"
"Migrated to config version "
f"{config_entry.version}.{config_entry.minor_version}"
)

return True
Expand Down

0 comments on commit ff32a77

Please sign in to comment.