diff --git a/tests/components/person/test_init.py b/tests/components/person/test_init.py index 6485f0ae7ac..b00a0ff1a6b 100644 --- a/tests/components/person/test_init.py +++ b/tests/components/person/test_init.py @@ -349,8 +349,8 @@ async def test_create_person_during_run(hass: HomeAssistant) -> None: hass.states.async_set(DEVICE_TRACKER, "home") await hass.async_block_till_done() - await hass.components.person.async_create_person( - "tracked person", device_trackers=[DEVICE_TRACKER] + await person.async_create_person( + hass, "tracked person", device_trackers=[DEVICE_TRACKER] ) await hass.async_block_till_done()