diff --git a/src/data/frontend.ts b/src/data/frontend.ts index edff26c1f9..4d17ae57aa 100644 --- a/src/data/frontend.ts +++ b/src/data/frontend.ts @@ -17,17 +17,10 @@ export interface CoreFrontendSystemData { onboarded_date?: string; } -export interface HomeQuickLink { - name: string; - icon?: string; - navigation_path: string; -} - export interface HomeFrontendSystemData { favorite_entities?: string[]; welcome_banner_dismissed?: boolean; hidden_summaries?: string[]; - quick_links?: HomeQuickLink[]; } declare global { diff --git a/src/panels/home/dialogs/dialog-edit-home.ts b/src/panels/home/dialogs/dialog-edit-home.ts index 64a9d37985..f195f5e008 100644 --- a/src/panels/home/dialogs/dialog-edit-home.ts +++ b/src/panels/home/dialogs/dialog-edit-home.ts @@ -1,23 +1,13 @@ -import { mdiClose, mdiPlus } from "@mdi/js"; import { css, html, LitElement, nothing } from "lit"; import { customElement, property, state } from "lit/decorators"; -import { repeat } from "lit/directives/repeat"; import { fireEvent } from "../../../common/dom/fire_event"; import "../../../components/entity/ha-entities-picker"; import "../../../components/ha-alert"; import "../../../components/ha-button"; import "../../../components/ha-dialog-footer"; import "../../../components/ha-dialog"; -import "../../../components/ha-icon-button"; -import "../../../components/ha-icon-picker"; -import "../../../components/ha-navigation-picker"; -import "../../../components/ha-svg-icon"; import "../../../components/ha-switch"; -import "../../../components/ha-textfield"; -import type { - HomeFrontendSystemData, - HomeQuickLink, -} from "../../../data/frontend"; +import type { HomeFrontendSystemData } from "../../../data/frontend"; import type { HassDialog } from "../../../dialogs/make-dialog-manager"; import { HOME_SUMMARIES, @@ -69,7 +59,6 @@ export class DialogEditHome } const hiddenSummaries = new Set(this._config?.hidden_summaries || []); - const quickLinks = this._config?.quick_links || []; return html` -

- ${this.hass.localize("ui.panel.home.editor.quick_links")} -

-

- ${this.hass.localize("ui.panel.home.editor.quick_links_description")} -

- - ${this.hass.localize("ui.panel.home.editor.areas_hint", { areas_page: html` 0 ? quickLinks : undefined, - }; - } - - private _addQuickLink(): void { - const quickLinks = [...(this._config?.quick_links || [])]; - quickLinks.push({ name: "", icon: "mdi:link", navigation_path: "" }); - this._config = { - ...this._config, - quick_links: quickLinks, - }; - } - private _favoriteEntitiesChanged(ev: CustomEvent): void { const entities = ev.detail.value as string[]; this._config = { @@ -340,37 +238,6 @@ export class DialogEditHome cursor: pointer; } - .quick-links { - display: flex; - flex-direction: column; - gap: var(--ha-space-3); - } - - .quick-link-row { - display: flex; - align-items: center; - gap: var(--ha-space-2); - } - - .quick-link-row ha-icon-picker { - width: 80px; - flex-shrink: 0; - } - - .quick-link-row ha-textfield { - flex: 1; - min-width: 0; - } - - .quick-link-row ha-navigation-picker { - flex: 2; - min-width: 0; - } - - .quick-link-row ha-icon-button { - flex-shrink: 0; - } - ha-entities-picker { display: block; } diff --git a/src/panels/home/ha-panel-home.ts b/src/panels/home/ha-panel-home.ts index acca053820..324f314f17 100644 --- a/src/panels/home/ha-panel-home.ts +++ b/src/panels/home/ha-panel-home.ts @@ -319,7 +319,6 @@ class PanelHome extends LitElement { favorite_entities: this._config.favorite_entities, home_panel: true, hidden_summaries: this._config.hidden_summaries, - quick_links: this._config.quick_links, }, }; diff --git a/src/panels/lovelace/strategies/home/home-dashboard-strategy.ts b/src/panels/lovelace/strategies/home/home-dashboard-strategy.ts index 40b7a4f5f0..146f8c91cb 100644 --- a/src/panels/lovelace/strategies/home/home-dashboard-strategy.ts +++ b/src/panels/lovelace/strategies/home/home-dashboard-strategy.ts @@ -18,7 +18,6 @@ export interface HomeDashboardStrategyConfig { favorite_entities?: string[]; home_panel?: boolean; hidden_summaries?: string[]; - quick_links?: { name: string; icon?: string; navigation_path: string }[]; } @customElement("home-dashboard-strategy") @@ -97,7 +96,6 @@ export class HomeDashboardStrategy extends ReactiveElement { favorite_entities: config.favorite_entities, home_panel: config.home_panel, hidden_summaries: config.hidden_summaries, - quick_links: config.quick_links, } satisfies HomeOverviewViewStrategyConfig, }, ...areaViews, diff --git a/src/panels/lovelace/strategies/home/home-overview-view-strategy.ts b/src/panels/lovelace/strategies/home/home-overview-view-strategy.ts index 7d5e3a04ca..0336065a25 100644 --- a/src/panels/lovelace/strategies/home/home-overview-view-strategy.ts +++ b/src/panels/lovelace/strategies/home/home-overview-view-strategy.ts @@ -40,7 +40,6 @@ export interface HomeOverviewViewStrategyConfig { favorite_entities?: string[]; home_panel?: boolean; hidden_summaries?: string[]; - quick_links?: { name: string; icon?: string; navigation_path: string }[]; } const computeAreaCard = ( @@ -345,21 +344,6 @@ export class HomeOverviewViewStrategy extends ReactiveElement { : "/energy?historyBack=1", }, } satisfies HomeSummaryCard), - // Quick links (chip-like cards without summary line) - ...(config.quick_links || []).map( - (link) => - ({ - type: "tile", - entity: "zone.home", - name: link.name, - icon: link.icon || "mdi:link", - hide_state: true, - tap_action: { - action: "navigate", - navigation_path: link.navigation_path, - }, - }) satisfies TileCardConfig - ), ].filter(Boolean) as LovelaceCardConfig[]; // Build summary cards for sidebar (full width: columns 12) diff --git a/src/translations/en.json b/src/translations/en.json index 966517a12b..ab4717c6c5 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2446,13 +2446,7 @@ "areas_hint": "You can rearrange your floors and areas in the order that best represents your house on the {areas_page}.", "areas_page": "areas page", "summaries": "Summaries", - "summaries_description": "Choose which summaries to show on your overview page.", - "quick_links": "Quick links", - "quick_links_description": "Add links to dashboards, sidebar items, or other pages.", - "add_quick_link": "Add quick link", - "quick_link_name": "Name", - "quick_link_icon": "Icon", - "quick_link_path": "Navigation path" + "summaries_description": "Choose which summaries to show on your overview page." }, "new_overview_dialog": { "title": "Welcome to your new overview",