Add the ability to process integration platforms on demand (#70174)

This commit is contained in:
J. Nick Koston 2022-04-17 00:23:00 -10:00 committed by GitHub
parent 4184c97b65
commit 42c448c422
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 102 additions and 32 deletions

View file

@ -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