From 9f027cf93132ef91f6a9d42012b17e1554536ffd Mon Sep 17 00:00:00 2001 From: Arjan <44190435+vingerha@users.noreply.github.com> Date: Mon, 6 Nov 2023 16:06:23 +0100 Subject: [PATCH] Update __init__.py --- custom_components/gtfs2/__init__.py | 17 ----------------- 1 file changed, 17 deletions(-) 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."""