diff --git a/custom_components/gtfs2/__init__.py b/custom_components/gtfs2/__init__.py index 6a94336..ae5c8de 100644 --- a/custom_components/gtfs2/__init__.py +++ b/custom_components/gtfs2/__init__.py @@ -12,23 +12,6 @@ _LOGGER = logging.getLogger(__name__) - -async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool: - """Migrate old entry.""" - _LOGGER.debug("Migrating from version %s", config_entry.version) - - if config_entry.version == 1: - new = {**config_entry.data} - new["connection_type"] = "username_password" - - config_entry.version = 2 - hass.config_entries.async_update_entry(config_entry, data=new) - - _LOGGER.debug("Migration to version %s successful", config_entry.version) - - return True - - async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up GTFS from a config entry."""