From f7d2d06c9b267be8d5e7fa12ac049a4813ee9376 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Thu, 28 Nov 2024 16:22:56 +0100 Subject: [PATCH] Add comments in homeassistant/components/recorder/migration.py (#131820) * Add comments in homeassistant/components/recorder/migration.py * Update homeassistant/components/recorder/migration.py --- homeassistant/components/recorder/migration.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/recorder/migration.py b/homeassistant/components/recorder/migration.py index 02ab05288c5..c9e36f47218 100644 --- a/homeassistant/components/recorder/migration.py +++ b/homeassistant/components/recorder/migration.py @@ -2742,7 +2742,10 @@ class EventIDPostMigration(BaseRunTimeMigration): class EntityIDPostMigration(BaseMigrationWithQuery, BaseRunTimeMigration): - """Migration to remove old entity_id strings from states.""" + """Migration to remove old entity_id strings from states. + + Introduced in HA Core 2023.4 by PR #89557. + """ migration_id = "entity_id_post_migration" task = MigrationTask @@ -2764,9 +2767,9 @@ NON_LIVE_DATA_MIGRATORS = ( ) LIVE_DATA_MIGRATORS = ( - EventTypeIDMigration, - EntityIDMigration, - EventIDPostMigration, + EventTypeIDMigration, # Introduced in HA Core 2023.4 by PR #89465 + EntityIDMigration, # Introduced in HA Core 2023.4 by PR #89557 + EventIDPostMigration, # Introduced in HA Core 2023.4 by PR #89901 )