mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Use async_load_platform in test_discover_notify unittest (#42142)
This commit is contained in:
parent
767c94f9c3
commit
bb1b210047
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user