From d1facab71c02a73590c604596ce9d63d06b129d0 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 19 Oct 2022 10:05:55 +0200 Subject: [PATCH] Add guard in recorder retry function (#80585) --- homeassistant/components/recorder/util.py | 1 + 1 file changed, 1 insertion(+) 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(