From d980ca7e0485fda6d7b20f41fb6817d46e60a084 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 29 Nov 2021 18:33:25 +0100 Subject: [PATCH] Correct recorder migration._add_columns for PostgreSQL (#60547) --- homeassistant/components/recorder/migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/recorder/migration.py b/homeassistant/components/recorder/migration.py index fe3e1aeb84d..2e6e5a7bd12 100644 --- a/homeassistant/components/recorder/migration.py +++ b/homeassistant/components/recorder/migration.py @@ -220,7 +220,7 @@ def _add_columns(connection, table_name, columns_def): ) ) except (InternalError, OperationalError) as err: - raise_if_exception_missing_str(err, ["duplicate"]) + raise_if_exception_missing_str(err, ["already exists", "duplicate"]) _LOGGER.warning( "Column %s already exists on %s, continuing", column_def.split(" ")[1],