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/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" 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-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; } 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` 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; 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 { >