mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
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:
parent
a698bd5800
commit
dd00a87ac5
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user