mirror of
https://github.com/home-assistant/core.git
synced 2026-09-02 19:42:30 +01:00
Fix
This commit is contained in:
@@ -1280,12 +1280,10 @@ class ConfigEntry[_DataT = Any]:
|
||||
return False
|
||||
if result:
|
||||
hass.config_entries._async_schedule_save() # noqa: SLF001
|
||||
except ConfigEntryError, ConfigEntryNotReady:
|
||||
except ConfigEntryNotReady:
|
||||
raise
|
||||
except Exception:
|
||||
self.logger.exception(
|
||||
"Error migrating entry %s for %s", self.title, self.domain
|
||||
)
|
||||
except Exception as exc: # noqa: BLE001
|
||||
self.__async_handle_config_entry_setup_error(hass, integration, exc, True)
|
||||
return False
|
||||
return result
|
||||
|
||||
|
||||
@@ -503,13 +503,13 @@ async def test_migrate_from_higher_version_not_supported(
|
||||
[
|
||||
(
|
||||
ConfigEntryError,
|
||||
config_entries.ConfigEntryState.SETUP_ERROR,
|
||||
config_entries.ConfigEntryState.MIGRATION_ERROR,
|
||||
"Error setting up entry Mock Title for comp during config entry migration",
|
||||
),
|
||||
(
|
||||
ConfigEntryAuthFailed,
|
||||
config_entries.ConfigEntryState.MIGRATION_ERROR,
|
||||
"Error migrating entry Mock Title for comp",
|
||||
"Config entry 'Mock Title' for comp integration could not authenticate",
|
||||
),
|
||||
(
|
||||
ConfigEntryNotReady,
|
||||
|
||||
Reference in New Issue
Block a user