mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Wait for person before creating user in onboarding (#25011)
This commit is contained in:
parent
1dfd937c94
commit
b9433b96dc
@ -11,7 +11,7 @@ import type {
|
|||||||
HaFormDataContainer,
|
HaFormDataContainer,
|
||||||
HaFormSchema,
|
HaFormSchema,
|
||||||
} from "../components/ha-form/types";
|
} from "../components/ha-form/types";
|
||||||
import { onboardUserStep } from "../data/onboarding";
|
import { onboardUserStep, waitForIntegration } from "../data/onboarding";
|
||||||
import type { ValueChangedEvent } from "../types";
|
import type { ValueChangedEvent } from "../types";
|
||||||
import { onBoardingStyles } from "./styles";
|
import { onBoardingStyles } from "./styles";
|
||||||
import { debounce } from "../common/util/debounce";
|
import { debounce } from "../common/util/debounce";
|
||||||
@ -196,6 +196,9 @@ class OnboardingCreateUser extends LitElement {
|
|||||||
try {
|
try {
|
||||||
const clientId = genClientId();
|
const clientId = genClientId();
|
||||||
|
|
||||||
|
// Person integration is used for onboarding, so we wait for it to be set up. It is not critical, so if it fails, we just continue
|
||||||
|
await waitForIntegration("person");
|
||||||
|
|
||||||
const result = await onboardUserStep({
|
const result = await onboardUserStep({
|
||||||
client_id: clientId,
|
client_id: clientId,
|
||||||
name: String(this._newUser.name),
|
name: String(this._newUser.name),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user