Minor tweak to Z-Wave JS Config Dashboard layout (#19032)

This commit is contained in:
Charles Garwood 2023-12-18 06:56:30 -05:00 committed by GitHub
parent e813108c66
commit ff9d179c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 335 additions and 351 deletions

View File

@ -50,7 +50,6 @@ import "../../../../../layouts/hass-tabs-subpage";
import { SubscribeMixin } from "../../../../../mixins/subscribe-mixin"; import { SubscribeMixin } from "../../../../../mixins/subscribe-mixin";
import { haStyle } from "../../../../../resources/styles"; import { haStyle } from "../../../../../resources/styles";
import type { HomeAssistant, Route } from "../../../../../types"; import type { HomeAssistant, Route } from "../../../../../types";
import "../../../ha-config-section";
import { showZWaveJSAddNodeDialog } from "./show-dialog-zwave_js-add-node"; import { showZWaveJSAddNodeDialog } from "./show-dialog-zwave_js-add-node";
import { showZWaveJSRebuildNetworkRoutesDialog } from "./show-dialog-zwave_js-rebuild-network-routes"; import { showZWaveJSRebuildNetworkRoutesDialog } from "./show-dialog-zwave_js-rebuild-network-routes";
import { showZWaveJSRemoveNodeDialog } from "./show-dialog-zwave_js-remove-node"; import { showZWaveJSRemoveNodeDialog } from "./show-dialog-zwave_js-remove-node";
@ -128,16 +127,6 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
.path=${mdiRefresh} .path=${mdiRefresh}
.label=${this.hass!.localize("ui.common.refresh")} .label=${this.hass!.localize("ui.common.refresh")}
></ha-icon-button> ></ha-icon-button>
<ha-config-section .narrow=${this.narrow} .isWide=${this.isWide}>
<div slot="header">
${this.hass.localize("ui.panel.config.zwave_js.dashboard.header")}
</div>
<div slot="introduction">
${this.hass.localize(
"ui.panel.config.zwave_js.dashboard.introduction"
)}
</div>
${this._network && ${this._network &&
this._status === "connected" && this._status === "connected" &&
(this._network?.controller.inclusion_state === (this._network?.controller.inclusion_state ===
@ -186,6 +175,7 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
${this._status !== "disconnected" ${this._status !== "disconnected"
? html` ? html`
<div class="details"> <div class="details">
Z-Wave
${this.hass.localize( ${this.hass.localize(
"ui.panel.config.zwave_js.common.network" "ui.panel.config.zwave_js.common.network"
)} )}
@ -196,8 +186,7 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
${this.hass.localize( ${this.hass.localize(
`ui.panel.config.zwave_js.dashboard.devices`, `ui.panel.config.zwave_js.dashboard.devices`,
{ {
count: count: this._network.controller.nodes.length,
this._network.controller.nodes.length,
} }
)} )}
${notReadyDevices > 0 ${notReadyDevices > 0
@ -224,9 +213,7 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
href=${`/config/entities/dashboard?historyBack=1&config_entry=${this.configEntryId}`} href=${`/config/entities/dashboard?historyBack=1&config_entry=${this.configEntryId}`}
> >
<mwc-button> <mwc-button>
${this.hass.localize( ${this.hass.localize("ui.panel.config.entities.caption")}
"ui.panel.config.entities.caption"
)}
</mwc-button> </mwc-button>
</a> </a>
${this._provisioningEntries?.length ${this._provisioningEntries?.length
@ -463,12 +450,12 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
</div> </div>
<div class="card-content"> <div class="card-content">
<p> <p>
Enable the reporting of anonymized telemetry and Enable the reporting of anonymized telemetry and statistics
statistics to the <em>Z-Wave JS organization</em>. This to the <em>Z-Wave JS organization</em>. This data will be
data will be used to focus development efforts and improve used to focus development efforts and improve the user
the user experience. Information about the data that is experience. Information about the data that is collected and
collected and how it is used, including an example of the how it is used, including an example of the data collected,
data collected, can be found in the can be found in the
<a <a
target="_blank" target="_blank"
href="https://zwave-js.github.io/node-zwave-js/#/data-collection/data-collection" href="https://zwave-js.github.io/node-zwave-js/#/data-collection/data-collection"
@ -479,7 +466,6 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
</ha-card> </ha-card>
` `
: ``} : ``}
</ha-config-section>
<ha-fab <ha-fab
slot="fab" slot="fab"
.label=${this.hass.localize( .label=${this.hass.localize(

View File

@ -4057,8 +4057,6 @@
"cancel_inclusion_exclusion": "Stop searching" "cancel_inclusion_exclusion": "Stop searching"
}, },
"dashboard": { "dashboard": {
"header": "Manage your Z-Wave network",
"introduction": "Manage your Z-Wave network and Z-Wave devices",
"driver_version": "Driver version", "driver_version": "Driver version",
"server_version": "Server version", "server_version": "Server version",
"home_id": "Home ID", "home_id": "Home ID",