mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 05:47:10 +00:00
Wait for person integration in onboarding (#143584)
This commit is contained in:
parent
aefe83b1a3
commit
2ae161d8b5
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user