mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Change Z-Wave JS API model to match zwave-js (#20793)
* Change Z-Wave JS API model to match zwave-js * fix qrprovisioninginformation * remove additional properties from QRProvisioningInformation
This commit is contained in:
parent
5a2977f4d4
commit
febbf34de6
@ -156,7 +156,7 @@ export interface QRProvisioningInformation {
|
|||||||
export interface PlannedProvisioningEntry {
|
export interface PlannedProvisioningEntry {
|
||||||
/** The device specific key (DSK) in the form aaaaa-bbbbb-ccccc-ddddd-eeeee-fffff-11111-22222 */
|
/** The device specific key (DSK) in the form aaaaa-bbbbb-ccccc-ddddd-eeeee-fffff-11111-22222 */
|
||||||
dsk: string;
|
dsk: string;
|
||||||
security_classes: SecurityClass[];
|
securityClasses: SecurityClass[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MINIMUM_QR_STRING_LENGTH = 52;
|
export const MINIMUM_QR_STRING_LENGTH = 52;
|
||||||
@ -388,11 +388,9 @@ export const enum NodeStatus {
|
|||||||
export interface ZwaveJSProvisioningEntry {
|
export interface ZwaveJSProvisioningEntry {
|
||||||
/** The device specific key (DSK) in the form aaaaa-bbbbb-ccccc-ddddd-eeeee-fffff-11111-22222 */
|
/** The device specific key (DSK) in the form aaaaa-bbbbb-ccccc-ddddd-eeeee-fffff-11111-22222 */
|
||||||
dsk: string;
|
dsk: string;
|
||||||
security_classes: SecurityClass[];
|
securityClasses: SecurityClass[];
|
||||||
additional_properties: {
|
nodeId?: number;
|
||||||
nodeId?: number;
|
[prop: string]: any;
|
||||||
[prop: string]: any;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RequestedGrant {
|
export interface RequestedGrant {
|
||||||
|
@ -49,7 +49,7 @@ class ZWaveJSProvisioned extends LitElement {
|
|||||||
type: "icon",
|
type: "icon",
|
||||||
width: "100px",
|
width: "100px",
|
||||||
template: (entry) =>
|
template: (entry) =>
|
||||||
entry.additional_properties.nodeId
|
entry.nodeId
|
||||||
? html`
|
? html`
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
@ -82,7 +82,7 @@ class ZWaveJSProvisioned extends LitElement {
|
|||||||
filterable: true,
|
filterable: true,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
template: (entry) => {
|
template: (entry) => {
|
||||||
const securityClasses = entry.security_classes;
|
const securityClasses = entry.securityClasses;
|
||||||
return securityClasses
|
return securityClasses
|
||||||
.map((secClass) =>
|
.map((secClass) =>
|
||||||
this.hass.localize(
|
this.hass.localize(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user