diff --git a/src/onboarding/onboarding-core-config.ts b/src/onboarding/onboarding-core-config.ts
index 3ea32cd556..67ca87b9a9 100644
--- a/src/onboarding/onboarding-core-config.ts
+++ b/src/onboarding/onboarding-core-config.ts
@@ -28,7 +28,6 @@ import { onboardCoreConfigStep } from "../data/onboarding";
import type { HomeAssistant, ValueChangedEvent } from "../types";
import { getLocalLanguage } from "../util/common-translation";
import "./onboarding-location";
-import "./onboarding-name";
@customElement("onboarding-core-config")
class OnboardingCoreConfig extends LitElement {
@@ -38,8 +37,6 @@ class OnboardingCoreConfig extends LitElement {
@state() private _working = false;
- @state() private _name?: ConfigUpdateValues["location_name"];
-
@state() private _location?: [number, number];
@state() private _elevation?: string;
@@ -56,14 +53,9 @@ class OnboardingCoreConfig extends LitElement {
@state() private _error?: string;
+ @state() private _skipCore = false;
+
protected render(): TemplateResult {
- if (!this._name) {
- return html`
- ${this.onboardingLocalize( - "ui.panel.page-onboarding.core-config.intro", - { name: this.hass.user!.name } - )} -
- -- ${this.onboardingLocalize( - "ui.panel.page-onboarding.core-config.intro_core" - )} -
- - - `; - } - - protected firstUpdated(changedProps) { - super.firstUpdated(changedProps); - setTimeout( - () => this.renderRoot.querySelector("ha-textfield")!.focus(), - 100 - ); - this.addEventListener("keyup", (ev) => { - if (ev.key === "Enter") { - this._save(ev); - } - }); - } - - private get _nameValue() { - return this._name !== undefined - ? this._name - : this.onboardingLocalize( - "ui.panel.page-onboarding.core-config.location_name_default" - ); - } - - private _nameChanged(ev) { - this._name = ev.target.value; - } - - private async _save(ev) { - ev.preventDefault(); - fireEvent(this, "value-changed", { - value: this._nameValue, - }); - } - - static get styles(): CSSResultGroup { - return css` - ha-textfield { - display: block; - } - p { - font-size: 14px; - line-height: 20px; - } - .footer { - margin-top: 16px; - text-align: right; - } - a { - color: var(--primary-color); - } - `; - } -} - -declare global { - interface HTMLElementTagNameMap { - "onboarding-name": OnboardingName; - } -} diff --git a/src/translations/en.json b/src/translations/en.json index 06edd1b452..40bf499eac 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -5702,9 +5702,7 @@ } }, "core-config": { - "intro": "Hello {name}, welcome to Home Assistant. How would you like to name your home?", - "intro_core": "We will set up the basics together. You can always change this later in the settings.", - "intro_location": "Let's set up the location of your home so that you can display information such as the local weather and use sun-based or presence-based automations. This data is never shared outside of your network.", + "intro_location": "Let's set up the location of your home so that you can display information such as the local weather and use sun-based or presence-based automations.", "location_address": "Powered by {openstreetmap} ({osm_privacy_policy}).", "osm_privacy_policy": "Privacy policy", "title_location_detect": "Do you want us to detect your location?",