Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vingerha authored Nov 6, 2023
1 parent e2bf8fc commit 9f027cf
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions custom_components/gtfs2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down

0 comments on commit 9f027cf

Please sign in to comment.