diff --git a/custom_components/teslafi/__init__.py b/custom_components/teslafi/__init__.py index 778b2b3..df8f55d 100644 --- a/custom_components/teslafi/__init__.py +++ b/custom_components/teslafi/__init__.py @@ -89,7 +89,7 @@ async def async_migrate_entry( ) -> bool: """Migrate old entry""" current = config_entry.version - LOGGER.debug("Migrating from version %s", version) + LOGGER.debug("Migrating from version %s", current) if current == 1: # Clean up old device entries. These will be recreated by HA