mirror of
https://github.com/home-assistant/core.git
synced 2025-11-07 09:59:30 +00:00
Rename async_process_integration_platform to async_process_integration_platform_for_component (#70217)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user