Remove deprecated hass.components from person test (#113822)

This commit is contained in:
Jan-Philipp Benecke
2024-03-19 22:33:40 +02:00
committed by GitHub
parent ff03c9db19
commit c52ee2a898
+2 -2
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()