mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Remove unused event from recorder (#125067)
This commit is contained in:
parent
d40e3145fe
commit
fbfd8c48aa
@ -225,7 +225,6 @@ class Recorder(threading.Thread):
|
|||||||
self.event_session: Session | None = None
|
self.event_session: Session | None = None
|
||||||
self._get_session: Callable[[], Session] | None = None
|
self._get_session: Callable[[], Session] | None = None
|
||||||
self._completed_first_database_setup: bool | None = None
|
self._completed_first_database_setup: bool | None = None
|
||||||
self.async_migration_event = asyncio.Event()
|
|
||||||
self.migration_in_progress = False
|
self.migration_in_progress = False
|
||||||
self.migration_is_live = False
|
self.migration_is_live = False
|
||||||
self.use_legacy_events_index = False
|
self.use_legacy_events_index = False
|
||||||
@ -934,11 +933,6 @@ class Recorder(threading.Thread):
|
|||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@callback
|
|
||||||
def _async_migration_started(self) -> None:
|
|
||||||
"""Set the migration started event."""
|
|
||||||
self.async_migration_event.set()
|
|
||||||
|
|
||||||
def _migrate_schema_offline(
|
def _migrate_schema_offline(
|
||||||
self, schema_status: migration.SchemaValidationStatus
|
self, schema_status: migration.SchemaValidationStatus
|
||||||
) -> tuple[bool, migration.SchemaValidationStatus]:
|
) -> tuple[bool, migration.SchemaValidationStatus]:
|
||||||
@ -963,7 +957,6 @@ class Recorder(threading.Thread):
|
|||||||
"Database upgrade in progress",
|
"Database upgrade in progress",
|
||||||
"recorder_database_migration",
|
"recorder_database_migration",
|
||||||
)
|
)
|
||||||
self.hass.add_job(self._async_migration_started)
|
|
||||||
return self._migrate_schema(schema_status, True)
|
return self._migrate_schema(schema_status, True)
|
||||||
|
|
||||||
def _migrate_schema(
|
def _migrate_schema(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user