From bb1b2100476af9adb8fff512d0640b725dc9ed08 Mon Sep 17 00:00:00 2001 From: CurrentThread <62957822+CurrentThread@users.noreply.github.com> Date: Wed, 21 Oct 2020 13:47:10 +0200 Subject: [PATCH] Use async_load_platform in test_discover_notify unittest (#42142) --- tests/components/demo/test_notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/demo/test_notify.py b/tests/components/demo/test_notify.py index 1fb2e528c8d..eac5e6a6006 100644 --- a/tests/components/demo/test_notify.py +++ b/tests/components/demo/test_notify.py @@ -72,7 +72,7 @@ async def test_discover_notify(hass, mock_demo_notify): """Test discovery of notify demo platform.""" assert notify.DOMAIN not in hass.config.components mock_demo_notify.return_value = None - discovery.load_platform( + await discovery.async_load_platform( hass, "notify", "demo", {"test_key": "test_val"}, {"notify": {}} ) await hass.async_block_till_done()