homey-api 1.8.0 → 1.9.0

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.
@@ -152,6 +152,10 @@ class Manager extends EventEmitter {
152
152
  if (parameter.type === 'array' && !Array.isArray(value)) {
153
153
  throw new Error(`Invalid Parameter Type: ${parameterId}. Got: ${typeof value}. Expected: array`);
154
154
  }
155
+
156
+ if (Array.isArray(parameter.type)) {
157
+ // TODO
158
+ }
155
159
  }
156
160
  }
157
161
 
@@ -31,6 +31,7 @@ class HomeyAPIV2 extends HomeyAPI {
31
31
  HomeyAPI.DISCOVERY_STRATEGIES.CLOUD,
32
32
  HomeyAPI.DISCOVERY_STRATEGIES.LOCAL,
33
33
  HomeyAPI.DISCOVERY_STRATEGIES.LOCAL_SECURE,
34
+ HomeyAPI.DISCOVERY_STRATEGIES.REMOTE_FORWARDED,
34
35
  ],
35
36
  ...props
36
37
  }) {
@@ -178,6 +179,12 @@ class HomeyAPIV2 extends HomeyAPI {
178
179
  }
179
180
  }
180
181
 
182
+ if (this.__strategies.includes(HomeyAPI.DISCOVERY_STRATEGIES.REMOTE_FORWARDED)) {
183
+ if (this.__properties.remoteUrlForwarded) {
184
+ urls[HomeyAPI.DISCOVERY_STRATEGIES.REMOTE_FORWARDED] = `${this.__properties.remoteUrlForwarded}`;
185
+ }
186
+ }
187
+
181
188
  if (!Object.keys(urls).length) {
182
189
  throw new Error('No Discovery Strategies Available');
183
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [