Add the ability to process integration platforms on demand (#70174)
This commit is contained in:
parent
4184c97b65
commit
42c448c422
4 changed files with 102 additions and 32 deletions
|
@ -35,3 +35,9 @@ async def test_process_integration_platforms(hass):
|
|||
assert len(processed) == 2
|
||||
assert processed[1][0] == "event"
|
||||
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(
|
||||
hass, "event"
|
||||
)
|
||||
assert len(processed) == 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue