Rename recorder INTEGRATION_PLATFORMS_LOAD_IN_RECORDER_THREAD (#122511)

This commit is contained in:
Erik Montnemery 2024-07-24 11:37:49 +02:00 committed by GitHub
parent a90d41d9e7
commit c9f0fe3c5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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,