mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Remove async_process_integration_platform_for_component (#100680)
This commit is contained in:
@@ -5,7 +5,6 @@ import pytest
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.integration_platform import (
|
||||
async_process_integration_platform_for_component,
|
||||
async_process_integration_platforms,
|
||||
)
|
||||
from homeassistant.setup import ATTR_COMPONENT, EVENT_COMPONENT_LOADED
|
||||
@@ -43,17 +42,6 @@ async def test_process_integration_platforms(hass: HomeAssistant) -> None:
|
||||
assert processed[1][0] == "event"
|
||||
assert processed[1][1] == event_platform
|
||||
|
||||
# Verify we only process the platform once if we call it manually
|
||||
await async_process_integration_platform_for_component(hass, "event")
|
||||
assert len(processed) == 2
|
||||
|
||||
|
||||
async def test_process_integration_platforms_none_loaded(hass: HomeAssistant) -> None:
|
||||
"""Test processing integrations with none loaded."""
|
||||
# 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_for_component(hass, "any")
|
||||
|
||||
|
||||
async def test_broken_integration(
|
||||
hass: HomeAssistant, caplog: pytest.LogCaptureFixture
|
||||
|
||||
Reference in New Issue
Block a user