From c810c67a539f16f250d30f755832ebd9ad990707 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 2 Nov 2022 19:18:25 +0100 Subject: [PATCH 1/8] Bumped version to 20221102.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7ff7a2fb4a..2a426cdf76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20221102.0" +version = "20221102.1" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md" From 6f07e7ca59624d36f1e3c73226594feafa9eef1c Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Sat, 5 Nov 2022 18:33:43 +0100 Subject: [PATCH 2/8] =?UTF-8?q?Hide=20legend=20for=20stats=20chart=20in=20?= =?UTF-8?q?more=20info,=20only=20shade=20area=20for=20min=20and=E2=80=A6?= =?UTF-8?q?=20(#14273)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chart/statistics-chart.ts | 6 ++++-- src/dialogs/more-info/ha-more-info-history.ts | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/chart/statistics-chart.ts b/src/components/chart/statistics-chart.ts index b1f3be804d..d0c9265441 100644 --- a/src/components/chart/statistics-chart.ts +++ b/src/components/chart/statistics-chart.ts @@ -61,6 +61,8 @@ class StatisticsChart extends LitElement { @property() public chartType: ChartType = "line"; + @property({ type: Boolean }) public hideLegend = false; + @property({ type: Boolean }) public isLoadingData = false; @state() private _chartData: ChartData = { datasets: [] }; @@ -175,7 +177,7 @@ class StatisticsChart extends LitElement { propagate: true, }, legend: { - display: true, + display: !this.hideLegend, labels: { usePointStyle: true, }, @@ -339,7 +341,7 @@ class StatisticsChart extends LitElement { ? "-1" : false : false, - borderColor: band ? color + "7F" : color, + borderColor: band ? color + (this.hideLegend ? "00" : "7F") : color, backgroundColor: band ? color + "3F" : color + "7F", pointRadius: 0, data: [], diff --git a/src/dialogs/more-info/ha-more-info-history.ts b/src/dialogs/more-info/ha-more-info-history.ts index 0177ca9eb9..bd6c3236db 100644 --- a/src/dialogs/more-info/ha-more-info-history.ts +++ b/src/dialogs/more-info/ha-more-info-history.ts @@ -65,6 +65,7 @@ export class MoreInfoHistory extends LitElement { .statisticsData=${this._statistics} .statTypes=${statTypes} .names=${this._statNames} + hideLegend >` : html` Date: Mon, 7 Nov 2022 14:44:34 +0100 Subject: [PATCH 3/8] Lovelace to dashboard (#14267) --- src/panels/lovelace/hui-root.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/hui-root.ts b/src/panels/lovelace/hui-root.ts index 8867c59097..d735132ca1 100644 --- a/src/panels/lovelace/hui-root.ts +++ b/src/panels/lovelace/hui-root.ts @@ -149,7 +149,7 @@ class HUIRoot extends LitElement { @click=${this._editModeDisable} > Date: Mon, 7 Nov 2022 14:45:02 +0100 Subject: [PATCH 4/8] Rename disabled attribute on integration card (#14268) --- gallery/src/pages/misc/integration-card.ts | 2 +- src/panels/config/integrations/ha-config-integrations.ts | 2 +- src/panels/config/integrations/ha-integration-card.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gallery/src/pages/misc/integration-card.ts b/gallery/src/pages/misc/integration-card.ts index 5b6b064803..56de4308e8 100644 --- a/gallery/src/pages/misc/integration-card.ts +++ b/gallery/src/pages/misc/integration-card.ts @@ -283,7 +283,7 @@ export class DemoIntegrationCard extends LitElement { .deviceRegistryEntries=${createDeviceRegistryEntries( info.items[0] )} - ?disabled=${info.disabled} + ?entryDisabled=${info.disabled} .selectedConfigEntryId=${info.highlight} > ` diff --git a/src/panels/config/integrations/ha-config-integrations.ts b/src/panels/config/integrations/ha-config-integrations.ts index c2c4b5d139..7d70d05222 100644 --- a/src/panels/config/integrations/ha-config-integrations.ts +++ b/src/panels/config/integrations/ha-config-integrations.ts @@ -490,7 +490,7 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) { ([domain, items]) => html` 1, - disabled: this.disabled, + disabled: this.entryDisabled, "state-not-loaded": hasItem && item!.state === "not_loaded", "state-failed-unload": hasItem && item!.state === "failed_unload", "state-setup": hasItem && item!.state === "setup_in_progress", @@ -124,7 +124,7 @@ export class HaIntegrationCard extends LitElement { > Date: Mon, 7 Nov 2022 14:24:09 -0500 Subject: [PATCH 5/8] Make borders for discovery card header seamless (#14322) --- src/panels/config/integrations/ha-integration-header.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/panels/config/integrations/ha-integration-header.ts b/src/panels/config/integrations/ha-integration-header.ts index d0d718acf6..1682f5a813 100644 --- a/src/panels/config/integrations/ha-integration-header.ts +++ b/src/panels/config/integrations/ha-integration-header.ts @@ -129,8 +129,10 @@ export class HaIntegrationHeader extends LitElement { color: var(--text-on-state-color); text-align: center; padding: 2px; - border-top-left-radius: var(--ha-card-border-radius, 12px); - border-top-right-radius: var(--ha-card-border-radius, 12px); + + /* Padding is subtracted for nested elements with border radiuses */ + border-top-left-radius: calc(var(--ha-card-border-radius, 12px) - 2px); + border-top-right-radius: calc(var(--ha-card-border-radius, 12px) - 2px); } .header { display: flex; From 245202c1254743c56ccaaff7d71d081884ff47d7 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Mon, 7 Nov 2022 14:28:01 -0500 Subject: [PATCH 6/8] Search for boards explicitly in the return value of `hardware/info` (#14320) --- src/panels/config/core/ha-config-system-navigation.ts | 4 +++- src/panels/config/hardware/ha-config-hardware.ts | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/panels/config/core/ha-config-system-navigation.ts b/src/panels/config/core/ha-config-system-navigation.ts index 22c5250849..6f1dba83e0 100644 --- a/src/panels/config/core/ha-config-system-navigation.ts +++ b/src/panels/config/core/ha-config-system-navigation.ts @@ -206,7 +206,9 @@ class HaConfigSystemNavigation extends LitElement { const hardwareInfo: HardwareInfo = await this.hass.callWS({ type: "hardware/info", }); - this._boardName = hardwareInfo?.hardware?.[0]?.name; + this._boardName = hardwareInfo?.hardware.find( + (hw) => hw.board !== null + )?.name; } else if (isHassioLoaded) { const osData: HassioHassOSInfo = await fetchHassioHassOsInfo(this.hass); if (osData.board) { diff --git a/src/panels/config/hardware/ha-config-hardware.ts b/src/panels/config/hardware/ha-config-hardware.ts index f04b06e039..83f664934d 100644 --- a/src/panels/config/hardware/ha-config-hardware.ts +++ b/src/panels/config/hardware/ha-config-hardware.ts @@ -176,9 +176,11 @@ class HaConfigHardware extends SubscribeMixin(LitElement) { let imageURL: string | undefined; let documentationURL: string | undefined; - if (this._hardwareInfo?.hardware.length) { - const boardData = this._hardwareInfo.hardware[0]; + const boardData = this._hardwareInfo?.hardware.find( + (hw) => hw.board !== null + ); + if (boardData) { boardId = boardData.board.hassio_board_id; boardName = boardData.name; documentationURL = boardData.url; From dd4c3c28ee941264f22accc3c46e0c56fff6108f Mon Sep 17 00:00:00 2001 From: Alex van den Hoogen Date: Mon, 7 Nov 2022 20:30:06 +0100 Subject: [PATCH 7/8] Fix expansion of all tabs in more info dialogs (#14283) --- src/dialogs/more-info/ha-more-info-dialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs/more-info/ha-more-info-dialog.ts b/src/dialogs/more-info/ha-more-info-dialog.ts index e1e9df7dc0..b7e3d289c7 100644 --- a/src/dialogs/more-info/ha-more-info-dialog.ts +++ b/src/dialogs/more-info/ha-more-info-dialog.ts @@ -315,7 +315,7 @@ export class MoreInfoDialog extends LitElement { cursor: default; } - :host([tab="info"][large]) ha-dialog { + :host([large]) ha-dialog { --mdc-dialog-min-width: 90vw; --mdc-dialog-max-width: 90vw; } From 9e56ddcc69b4ef67b4a2a8fc164da395ec049014 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 8 Nov 2022 14:16:42 +0100 Subject: [PATCH 8/8] Bumped version to 20221108.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2a426cdf76..02e133b061 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "home-assistant-frontend" -version = "20221102.1" +version = "20221108.0" license = {text = "Apache-2.0"} description = "The Home Assistant frontend" readme = "README.md"