homey-api 1.10.12 → 1.10.14
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.
|
@@ -113,9 +113,13 @@ class HomeyAPIV2 extends HomeyAPI {
|
|
|
113
113
|
* A manager instance is created when it's first accessed
|
|
114
114
|
*/
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
getSpecification() {
|
|
117
117
|
// eslint-disable-next-line global-require
|
|
118
|
-
|
|
118
|
+
return require('../../assets/specifications/HomeyAPIV2.json');
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
generateManagersFromSpecification() {
|
|
122
|
+
const { managers } = this.getSpecification();
|
|
119
123
|
Object.entries(managers).forEach(([managerName, manager]) => {
|
|
120
124
|
this.generateManagerFromSpecification(managerName, manager);
|
|
121
125
|
});
|
|
@@ -11,6 +11,11 @@ const HomeyAPIV3 = require('./HomeyAPIV3');
|
|
|
11
11
|
*/
|
|
12
12
|
class HomeyAPIV3Local extends HomeyAPIV3 {
|
|
13
13
|
|
|
14
|
+
getSpecification() {
|
|
15
|
+
// eslint-disable-next-line global-require
|
|
16
|
+
return require('../../assets/specifications/HomeyAPIV3Local.json');
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
module.exports = HomeyAPIV3Local;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homey-api",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.14",
|
|
4
4
|
"description": "Homey API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"core-js": "^3.19.1",
|
|
49
49
|
"node-fetch": "^2.6.7",
|
|
50
50
|
"regenerator-runtime": "^0.13.9",
|
|
51
|
-
"socket.io-client": "^
|
|
51
|
+
"socket.io-client": "^2.5.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@athombv/jsdoc-template": "^1.6.1",
|