From c52ee2a898f35dc577971c7283fef13512cc9fc3 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Tue, 19 Mar 2024 21:33:40 +0100 Subject: [PATCH] Remove deprecated `hass.components` from person test (#113822) --- tests/components/person/test_init.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()