diff --git a/homeassistant/components/recorder/util.py b/homeassistant/components/recorder/util.py index bd95e1f50c3..8ee9a4e0401 100644 --- a/homeassistant/components/recorder/util.py +++ b/homeassistant/components/recorder/util.py @@ -509,6 +509,7 @@ def retryable_database_job( assert instance.engine is not None if ( instance.engine.dialect.name == SupportedDialect.MYSQL + and err.orig and err.orig.args[0] in RETRYABLE_MYSQL_ERRORS ): _LOGGER.info(