From c9f0fe3c5d55bd1306aee167c8aa76f888ce0498 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 24 Jul 2024 11:37:49 +0200 Subject: [PATCH] Rename recorder INTEGRATION_PLATFORMS_LOAD_IN_RECORDER_THREAD (#122511) --- homeassistant/components/recorder/__init__.py | 4 ++-- homeassistant/components/recorder/const.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py index f5e72912224..b9ba90caf3f 100644 --- a/homeassistant/components/recorder/__init__.py +++ b/homeassistant/components/recorder/__init__.py @@ -33,7 +33,7 @@ from .const import ( # noqa: F401 DATA_INSTANCE, DOMAIN, INTEGRATION_PLATFORM_COMPILE_STATISTICS, - INTEGRATION_PLATFORMS_LOAD_IN_RECORDER_THREAD, + INTEGRATION_PLATFORMS_RUN_IN_RECORDER_THREAD, SQLITE_URL_PREFIX, SupportedDialect, ) @@ -191,7 +191,7 @@ async def _async_setup_integration_platform( # add it to the recorder queue to be processed. if any( hasattr(platform, _attr) - for _attr in INTEGRATION_PLATFORMS_LOAD_IN_RECORDER_THREAD + for _attr in INTEGRATION_PLATFORMS_RUN_IN_RECORDER_THREAD ): instance.queue_task(AddRecorderPlatformTask(domain, platform)) diff --git a/homeassistant/components/recorder/const.py b/homeassistant/components/recorder/const.py index 00121608b4c..31870a5db2d 100644 --- a/homeassistant/components/recorder/const.py +++ b/homeassistant/components/recorder/const.py @@ -70,7 +70,7 @@ INTEGRATION_PLATFORM_COMPILE_STATISTICS = "compile_statistics" INTEGRATION_PLATFORM_VALIDATE_STATISTICS = "validate_statistics" INTEGRATION_PLATFORM_LIST_STATISTIC_IDS = "list_statistic_ids" -INTEGRATION_PLATFORMS_LOAD_IN_RECORDER_THREAD = { +INTEGRATION_PLATFORMS_RUN_IN_RECORDER_THREAD = { INTEGRATION_PLATFORM_COMPILE_STATISTICS, INTEGRATION_PLATFORM_VALIDATE_STATISTICS, INTEGRATION_PLATFORM_LIST_STATISTIC_IDS,