homebridge-midea-platform 1.2.6-beta.5 → 1.2.6-beta.7

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.
@@ -289,10 +289,10 @@
289
289
  const file_data_str = await homebridge.request('/downloadLua', { deviceType: device.type, deviceSn: device.sn });
290
290
  const blob = new Blob([file_data_str], { type: 'text/plain' });
291
291
 
292
- const url = URL.createObjectURL(blob);
292
+ const dataUrl = 'data:text/plain;charset=utf-8,' + encodeURIComponent(file_data_str);
293
293
 
294
294
  const a = document.createElement('a');
295
- a.href = url;
295
+ a.href = dataUrl;
296
296
  a.download = `${device.type.toString(16)}_${device.model}.lua`;
297
297
 
298
298
  document.body.appendChild(a);
@@ -253,7 +253,7 @@ class UiServer extends HomebridgePluginUiServer {
253
253
  msg: 'Start device discovery',
254
254
  });
255
255
  // If IP addresses provided then probe them directly
256
- for (const address of ipAddrs) {
256
+ for (const ip of ipAddrs) {
257
257
  discover.discoverDeviceByIP(ip);
258
258
  }
259
259
  // And then send broadcast to network(s)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "displayName": "Homebridge Midea Platform",
3
3
  "name": "homebridge-midea-platform",
4
4
  "type": "module",
5
- "version": "1.2.6-beta.5",
5
+ "version": "1.2.6-beta.7",
6
6
  "description": "Homebridge plugin for Midea devices",
7
7
  "license": "Apache-2.0",
8
8
  "repository": {