homey-api 3.3.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4639,15 +4639,6 @@
|
|
|
4639
4639
|
],
|
|
4640
4640
|
"parameters": {}
|
|
4641
4641
|
},
|
|
4642
|
-
"flashFirmware": {
|
|
4643
|
-
"method": "put",
|
|
4644
|
-
"path": "/flash-firmware",
|
|
4645
|
-
"private": true,
|
|
4646
|
-
"scopes": [
|
|
4647
|
-
"homey.system"
|
|
4648
|
-
],
|
|
4649
|
-
"parameters": {}
|
|
4650
|
-
},
|
|
4651
4642
|
"runCommand": {
|
|
4652
4643
|
"method": "post",
|
|
4653
4644
|
"path": "/command",
|
|
@@ -4666,6 +4657,15 @@
|
|
|
4666
4657
|
"type": "object"
|
|
4667
4658
|
}
|
|
4668
4659
|
}
|
|
4660
|
+
},
|
|
4661
|
+
"flashFirmware": {
|
|
4662
|
+
"method": "put",
|
|
4663
|
+
"path": "/flash-firmware",
|
|
4664
|
+
"private": true,
|
|
4665
|
+
"scopes": [
|
|
4666
|
+
"homey.system"
|
|
4667
|
+
],
|
|
4668
|
+
"parameters": {}
|
|
4669
4669
|
}
|
|
4670
4670
|
}
|
|
4671
4671
|
},
|
|
@@ -4823,6 +4823,33 @@
|
|
|
4823
4823
|
"idCamelCase": "zwave",
|
|
4824
4824
|
"items": {},
|
|
4825
4825
|
"operations": {
|
|
4826
|
+
"getOptionRegionOverride": {
|
|
4827
|
+
"method": "GET",
|
|
4828
|
+
"path": "/option/regionOverride",
|
|
4829
|
+
"scopes": [
|
|
4830
|
+
"homey.system.readonly"
|
|
4831
|
+
]
|
|
4832
|
+
},
|
|
4833
|
+
"setOptionRegionOverride": {
|
|
4834
|
+
"method": "PUT",
|
|
4835
|
+
"path": "/option/regionOverride",
|
|
4836
|
+
"scopes": [
|
|
4837
|
+
"homey.system"
|
|
4838
|
+
],
|
|
4839
|
+
"parameters": {
|
|
4840
|
+
"value": {
|
|
4841
|
+
"in": "body",
|
|
4842
|
+
"required": true
|
|
4843
|
+
}
|
|
4844
|
+
}
|
|
4845
|
+
},
|
|
4846
|
+
"unsetOptionRegionOverride": {
|
|
4847
|
+
"method": "DELETE",
|
|
4848
|
+
"path": "/option/regionOverride",
|
|
4849
|
+
"scopes": [
|
|
4850
|
+
"homey.system"
|
|
4851
|
+
]
|
|
4852
|
+
},
|
|
4826
4853
|
"getState": {
|
|
4827
4854
|
"method": "get",
|
|
4828
4855
|
"path": "/state",
|
|
@@ -4176,6 +4176,12 @@ export namespace HomeyAPIV3Local {
|
|
|
4176
4176
|
}
|
|
4177
4177
|
|
|
4178
4178
|
export class ManagerZwave extends HomeyAPIV3.ManagerZwave {
|
|
4179
|
+
getOptionRegionOverride(): Promise<any>;
|
|
4180
|
+
|
|
4181
|
+
setOptionRegionOverride(opts: { value: any }): Promise<any>;
|
|
4182
|
+
|
|
4183
|
+
unsetOptionRegionOverride(): Promise<any>;
|
|
4184
|
+
|
|
4179
4185
|
getState(): Promise<any>;
|
|
4180
4186
|
|
|
4181
4187
|
runCommand(opts: {
|
|
@@ -10222,13 +10222,13 @@ export namespace HomeyAPIV3Local {
|
|
|
10222
10222
|
export class ManagerZigbee extends HomeyAPIV3.ManagerZigbee {
|
|
10223
10223
|
getState(): Promise<any>;
|
|
10224
10224
|
|
|
10225
|
-
flashFirmware(): Promise<any>;
|
|
10226
|
-
|
|
10227
10225
|
runCommand(opts: {
|
|
10228
10226
|
command: string;
|
|
10229
10227
|
|
|
10230
10228
|
opts?: object;
|
|
10231
10229
|
}): Promise<any>;
|
|
10230
|
+
|
|
10231
|
+
flashFirmware(): Promise<any>;
|
|
10232
10232
|
}
|
|
10233
10233
|
|
|
10234
10234
|
export class ManagerZones extends HomeyAPIV3.ManagerZones {
|
|
@@ -10264,6 +10264,12 @@ export namespace HomeyAPIV3Local {
|
|
|
10264
10264
|
}
|
|
10265
10265
|
|
|
10266
10266
|
export class ManagerZwave extends HomeyAPIV3.ManagerZwave {
|
|
10267
|
+
getOptionRegionOverride(): Promise<any>;
|
|
10268
|
+
|
|
10269
|
+
setOptionRegionOverride(opts: { value: any }): Promise<any>;
|
|
10270
|
+
|
|
10271
|
+
unsetOptionRegionOverride(): Promise<any>;
|
|
10272
|
+
|
|
10267
10273
|
getState(): Promise<any>;
|
|
10268
10274
|
|
|
10269
10275
|
runCommand(opts: {
|
package/lib/Util.js
CHANGED
|
@@ -244,15 +244,16 @@ class Util {
|
|
|
244
244
|
.catch(err => {
|
|
245
245
|
rejections[i] = err;
|
|
246
246
|
|
|
247
|
-
if
|
|
248
|
-
|
|
247
|
+
// Check if all promises have been rejected
|
|
248
|
+
if (rejections.filter(Boolean).length === promises.length) {
|
|
249
|
+
reject(rejections);
|
|
249
250
|
}
|
|
250
251
|
});
|
|
251
252
|
});
|
|
252
253
|
});
|
|
253
254
|
}
|
|
254
255
|
|
|
255
|
-
|
|
256
|
+
/**
|
|
256
257
|
* Converts an object to a query string
|
|
257
258
|
* @param {object} queryObject - Query parameter object
|
|
258
259
|
* @returns {string}
|