mirror of
https://github.com/home-assistant/core
synced 2024-09-25 00:41:32 +02:00
Remove deprecated hass.components
from person test (#113822)
This commit is contained in:
parent
ff03c9db19
commit
c52ee2a898
@ -349,8 +349,8 @@ async def test_create_person_during_run(hass: HomeAssistant) -> None:
|
|||||||
hass.states.async_set(DEVICE_TRACKER, "home")
|
hass.states.async_set(DEVICE_TRACKER, "home")
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
await hass.components.person.async_create_person(
|
await person.async_create_person(
|
||||||
"tracked person", device_trackers=[DEVICE_TRACKER]
|
hass, "tracked person", device_trackers=[DEVICE_TRACKER]
|
||||||
)
|
)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user