remove wait for person in onboarding user (#25173)

This commit is contained in:
Bram Kragten 2025-04-25 13:18:53 +02:00 committed by GitHub
parent 0cab6c9e2e
commit b7aa296be7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,16 +5,16 @@ import { html, LitElement } from "lit";
import { customElement, property, query, state } from "lit/decorators"; import { customElement, property, query, state } from "lit/decorators";
import { fireEvent } from "../common/dom/fire_event"; import { fireEvent } from "../common/dom/fire_event";
import type { LocalizeFunc } from "../common/translations/localize"; import type { LocalizeFunc } from "../common/translations/localize";
import { debounce } from "../common/util/debounce";
import "../components/ha-form/ha-form"; import "../components/ha-form/ha-form";
import type { HaForm } from "../components/ha-form/ha-form"; import type { HaForm } from "../components/ha-form/ha-form";
import type { import type {
HaFormDataContainer, HaFormDataContainer,
HaFormSchema, HaFormSchema,
} from "../components/ha-form/types"; } from "../components/ha-form/types";
import { onboardUserStep, waitForIntegration } from "../data/onboarding"; import { onboardUserStep } 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";
const CHECK_USERNAME_REGEX = /\s|[A-Z]/; const CHECK_USERNAME_REGEX = /\s|[A-Z]/;
@ -196,9 +196,6 @@ 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),