This commit is contained in:
G Johansson
2026-09-02 15:05:46 +00:00
parent e524bdcc6b
commit 8fcfd42e8d
2 changed files with 5 additions and 7 deletions
+3 -5
View File
@@ -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
+2 -2
View File
@@ -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,