Migrate application_credentials to use async_get_platform (#112161)

This ensures that if application_credentials loads the integration's
application_credentials platform it will get loaded in the executor if enabled
This commit is contained in:
J. Nick Koston 2024-03-04 01:27:52 -10:00 committed by GitHub
parent a698bd5800
commit dd00a87ac5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -291,7 +291,7 @@ async def _get_platform(
_LOGGER.debug("Integration '%s' does not exist: %s", integration_domain, err)
return None
try:
platform = integration.get_platform("application_credentials")
platform = await integration.async_get_platform("application_credentials")
except ImportError as err:
_LOGGER.debug(
"Integration '%s' does not provide application_credentials: %s",