diff --git a/homeassistant/components/recorder/migration.py b/homeassistant/components/recorder/migration.py index 33790ec65b2..d57db03f90e 100644 --- a/homeassistant/components/recorder/migration.py +++ b/homeassistant/components/recorder/migration.py @@ -175,7 +175,7 @@ def _unindexable_legacy_column( ) -> bool: """Ignore index errors on char(0) columns.""" # The error code is hard coded because the PyMySQL library may not be - # installed when using other database engines than MySQL or MariaDB. + # installed when using database engines other than MySQL or MariaDB. # 1167: The used storage engine can't index column '%s' return bool( base == LegacyBase diff --git a/homeassistant/components/recorder/util.py b/homeassistant/components/recorder/util.py index 2e7ac0c092d..ba4c5194689 100644 --- a/homeassistant/components/recorder/util.py +++ b/homeassistant/components/recorder/util.py @@ -107,6 +107,8 @@ MAX_RESTART_TIME = timedelta(minutes=10) # Retry when one of the following MySQL errors occurred: RETRYABLE_MYSQL_ERRORS = (1205, 1206, 1213) +# The error codes are hard coded because the PyMySQL library may not be +# installed when using database engines other than MySQL or MariaDB. # 1205: Lock wait timeout exceeded; try restarting transaction # 1206: The total number of locks exceeds the lock table size # 1213: Deadlock found when trying to get lock; try restarting transaction