Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.recorder.migration.EntityIDPostMigration Class Reference
Inheritance diagram for homeassistant.components.recorder.migration.EntityIDPostMigration:
[legend]
Collaboration diagram for homeassistant.components.recorder.migration.EntityIDPostMigration:
[legend]

Public Member Functions

DataMigrationStatus migrate_data_impl (self, Recorder instance)
 
StatementLambdaElement needs_migrate_query (self)
 
- Public Member Functions inherited from homeassistant.components.recorder.migration.BaseMigrationWithQuery
DataMigrationStatus needs_migrate_impl (self, Recorder instance, Session session)
 
- Public Member Functions inherited from homeassistant.components.recorder.migration.BaseMigration
None __init__ (self, int schema_version, dict[str, int] migration_changes)
 
None migration_done (self, Recorder instance, Session session)
 
bool needs_migrate (self, Recorder instance, Session session)
 
- Public Member Functions inherited from homeassistant.components.recorder.migration.BaseRunTimeMigration
bool migrate_data (self, Recorder instance)
 
None queue_migration (self, Recorder instance, Session session)
 

Static Public Attributes

tuple index_to_drop = (TABLE_STATES, LEGACY_STATES_ENTITY_ID_LAST_UPDATED_INDEX)
 
string migration_id = "entity_id_post_migration"
 
 task = MigrationTask
 
- Static Public Attributes inherited from homeassistant.components.recorder.migration.BaseMigration
int migration_version = 1
 
 None
 
int required_schema_version = 0
 
- Static Public Attributes inherited from homeassistant.components.recorder.migration.BaseRunTimeMigration
 task = MigrationTask
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.components.recorder.migration.BaseMigration
 migration_changes
 
 schema_version
 

Detailed Description

Migration to remove old entity_id strings from states.

Definition at line 2744 of file migration.py.

Member Function Documentation

◆ migrate_data_impl()

DataMigrationStatus homeassistant.components.recorder.migration.EntityIDPostMigration.migrate_data_impl (   self,
Recorder  instance 
)
Migrate some data, returns True if migration is completed.

Reimplemented from homeassistant.components.recorder.migration.BaseMigration.

Definition at line 2751 of file migration.py.

◆ needs_migrate_query()

StatementLambdaElement homeassistant.components.recorder.migration.EntityIDPostMigration.needs_migrate_query (   self)
Check if the data is migrated.

Reimplemented from homeassistant.components.recorder.migration.BaseMigrationWithQuery.

Definition at line 2756 of file migration.py.

Member Data Documentation

◆ index_to_drop

tuple homeassistant.components.recorder.migration.EntityIDPostMigration.index_to_drop = (TABLE_STATES, LEGACY_STATES_ENTITY_ID_LAST_UPDATED_INDEX)
static

Definition at line 2749 of file migration.py.

◆ migration_id

string homeassistant.components.recorder.migration.EntityIDPostMigration.migration_id = "entity_id_post_migration"
static

Definition at line 2747 of file migration.py.

◆ task

homeassistant.components.recorder.migration.EntityIDPostMigration.task = MigrationTask
static

Definition at line 2748 of file migration.py.


The documentation for this class was generated from the following file: