Change typing of zwave_js API return based on lib version bump (#13393)

This commit is contained in:
Raman Gupta 2022-09-07 09:13:13 -04:00 committed by GitHub
parent 7f82b90c25
commit b682d13486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,6 +85,13 @@ enum Protocols {
ZWaveLongRange = 1,
}
enum NodeType {
Controller,
/** @deprecated Use `NodeType["End Node"]` instead */
"Routing End Node",
"End Node" = 1,
}
export enum FirmwareUpdateStatus {
Error_Timeout = -1,
Error_Checksum = 0,
@ -142,12 +149,12 @@ export interface ZWaveJSController {
sdk_version: string;
type: number;
own_node_id: number;
is_secondary: boolean;
is_primary: boolean;
is_using_home_id_from_other_network: boolean;
is_sis_present: boolean;
was_real_primary: boolean;
is_static_update_controller: boolean;
is_slave: boolean;
is_suc: boolean;
node_type: NodeType;
firmware_version: string;
manufacturer_id: number;
product_id: number;