Rename async_process_integration_platform to async_process_integration_platform_for_component (#70217)
This commit is contained in:
parent
a9a5645255
commit
026e1635cc
2 changed files with 10 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
from unittest.mock import Mock
|
||||
|
||||
from homeassistant.helpers.integration_platform import (
|
||||
async_process_integration_platform,
|
||||
async_process_integration_platform_for_component,
|
||||
)
|
||||
from homeassistant.setup import ATTR_COMPONENT, EVENT_COMPONENT_LOADED
|
||||
|
||||
|
@ -40,7 +40,7 @@ async def test_process_integration_platforms(hass):
|
|||
assert processed[1][1] == event_platform
|
||||
|
||||
# Verify we only process the platform once if we call it manually
|
||||
await hass.helpers.integration_platform.async_process_integration_platform(
|
||||
await hass.helpers.integration_platform.async_process_integration_platform_for_component(
|
||||
hass, "event"
|
||||
)
|
||||
assert len(processed) == 2
|
||||
|
@ -48,6 +48,6 @@ async def test_process_integration_platforms(hass):
|
|||
|
||||
async def test_process_integration_platforms_none_loaded(hass):
|
||||
"""Test processing integrations with none loaded."""
|
||||
# Verify we can call async_process_integration_platform
|
||||
# Verify we can call async_process_integration_platform_for_component
|
||||
# when there are none loaded and it does not throw
|
||||
await async_process_integration_platform(hass, "any")
|
||||
await async_process_integration_platform_for_component(hass, "any")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue