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
|
|
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 =
|
|
295
|
+
a.href = dataUrl;
|
|
296
296
|
a.download = `${device.type.toString(16)}_${device.model}.lua`;
|
|
297
297
|
|
|
298
298
|
document.body.appendChild(a);
|
package/homebridge-ui/server.js
CHANGED
|
@@ -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
|
|
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