@attraccess/plugin-shelly 0.1.0-nightly.937.1 → 0.1.0-nightly.940.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.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -652,7 +652,10 @@ var ShellyFirmwareService = class {
|
|
|
652
652
|
async getGen2Status(target) {
|
|
653
653
|
const [info, check] = await Promise.all([
|
|
654
654
|
this.http.getJson(`http://${target.ipAddress}/rpc/Shelly.GetDeviceInfo`, target),
|
|
655
|
-
this.http.getJson(
|
|
655
|
+
this.http.getJson(
|
|
656
|
+
`http://${target.ipAddress}/rpc/Shelly.CheckForUpdate`,
|
|
657
|
+
target
|
|
658
|
+
)
|
|
656
659
|
]);
|
|
657
660
|
const stable = check?.stable?.version ?? null;
|
|
658
661
|
const beta = check?.beta?.version ?? null;
|