mirror of
https://github.com/home-assistant/core.git
synced 2025-04-27 10:47:51 +00:00
Migrate remaining get_platform in config to async_get_platform (#112469)
This was the only remaining case where blocking I/O might have happened in config. It was unlikely though as async_get_component should have pre-imported the config platform
This commit is contained in:
parent
982c8f8f4a
commit
0f69a0647c
@ -1098,7 +1098,9 @@ async def merge_packages_config(
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
config_platform: ModuleType | None = integration.get_platform("config")
|
config_platform: ModuleType | None = (
|
||||||
|
await integration.async_get_platform("config")
|
||||||
|
)
|
||||||
# Test if config platform has a config validator
|
# Test if config platform has a config validator
|
||||||
if not hasattr(config_platform, "async_validate_config"):
|
if not hasattr(config_platform, "async_validate_config"):
|
||||||
config_platform = None
|
config_platform = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user