mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00: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")
|
||||
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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user