mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
use logical device type (#4524)
This commit is contained in:
parent
ef2ca4a07f
commit
9d333fb557
@ -22,6 +22,7 @@ export interface ZHADevice {
|
|||||||
user_given_name?: string;
|
user_given_name?: string;
|
||||||
power_source?: string;
|
power_source?: string;
|
||||||
area_id?: string;
|
area_id?: string;
|
||||||
|
device_type: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Attribute {
|
export interface Attribute {
|
||||||
|
@ -163,6 +163,8 @@ class ZHADeviceCard extends LitElement {
|
|||||||
<dd class="zha-info">${this.device!.ieee}</dd>
|
<dd class="zha-info">${this.device!.ieee}</dd>
|
||||||
<dt>Nwk:</dt>
|
<dt>Nwk:</dt>
|
||||||
<dd class="zha-info">${formatAsPaddedHex(this.device!.nwk)}</dd>
|
<dd class="zha-info">${formatAsPaddedHex(this.device!.nwk)}</dd>
|
||||||
|
<dt>Device Type:</dt>
|
||||||
|
<dd class="zha-info">${this.device!.device_type}</dd>
|
||||||
<dt>LQI:</dt>
|
<dt>LQI:</dt>
|
||||||
<dd class="zha-info">${this.device!.lqi ||
|
<dd class="zha-info">${this.device!.lqi ||
|
||||||
this.hass!.localize("ui.dialogs.zha_device_info.unknown")}</dd>
|
this.hass!.localize("ui.dialogs.zha_device_info.unknown")}</dd>
|
||||||
@ -304,7 +306,8 @@ class ZHADeviceCard extends LitElement {
|
|||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
${this.device!.power_source === "Mains"
|
${this.device!.power_source === "Mains" &&
|
||||||
|
this.device!.device_type === "Router"
|
||||||
? html`
|
? html`
|
||||||
<mwc-button @click=${this._onAddDevicesClick}>
|
<mwc-button @click=${this._onAddDevicesClick}>
|
||||||
${this.hass!.localize(
|
${this.hass!.localize(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user