1
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:
Jan-Philipp Benecke 2024-03-19 21:33:40 +01:00 committed by GitHub
parent ff03c9db19
commit c52ee2a898
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()