Wait for person integration in onboarding (#143584)

This commit is contained in:
Erik Montnemery 2025-04-24 17:08:53 +02:00 committed by GitHub
parent aefe83b1a3
commit 2ae161d8b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,7 +197,7 @@ class UserOnboardingView(_BaseOnboardingStepView):
{"username": data["username"]} {"username": data["username"]}
) )
await hass.auth.async_link_user(user, credentials) await hass.auth.async_link_user(user, credentials)
if "person" in hass.config.components: if await async_wait_component(hass, "person"):
await person.async_create_person(hass, data["name"], user_id=user.id) await person.async_create_person(hass, data["name"], user_id=user.id)
# Create default areas using the users supplied language. # Create default areas using the users supplied language.