@homebridge-plugins/homebridge-ewelink 12.18.2-beta.1 → 12.18.2-beta.2
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/CHANGELOG.md +1 -0
- package/lib/node-dns-sd/lib/dns-sd.js +7 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,7 @@ All notable changes to `@homebridge-plugins/homebridge-ewelink` will be document
|
|
|
16
16
|
- fix: set a garage's sensor up after the garage, so it gets its open and closed feedback
|
|
17
17
|
- fix: make the per-device logging override settable, and drop the debug option that never was
|
|
18
18
|
- fix: move the two-door garage one door at a time, so the second is not cut short
|
|
19
|
+
- fix: stop the lan discovery printing straight to the console, whatever the log level
|
|
19
20
|
|
|
20
21
|
## v12.18.1 (2026-08-02)
|
|
21
22
|
|
|
@@ -432,9 +432,11 @@ DnsSd.prototype._addMembership = function () {
|
|
|
432
432
|
this._source_address_list.forEach((netif) => {
|
|
433
433
|
try {
|
|
434
434
|
this._udp.addMembership(this._MULTICAST_ADDR, netif)
|
|
435
|
-
} catch
|
|
436
|
-
//
|
|
437
|
-
|
|
435
|
+
} catch {
|
|
436
|
+
// Adding the membership twice is normal when more than one interface
|
|
437
|
+
// resolves to the same address, and there is nothing the owner can do about
|
|
438
|
+
// it. This used to console.log, which bypasses Homebridge's logger entirely
|
|
439
|
+
// and so printed whatever the log level was set to.
|
|
438
440
|
}
|
|
439
441
|
})
|
|
440
442
|
}
|
|
@@ -443,9 +445,8 @@ DnsSd.prototype._dropMembership = function () {
|
|
|
443
445
|
this._source_address_list.forEach((netif) => {
|
|
444
446
|
try {
|
|
445
447
|
this._udp.dropMembership(this._MULTICAST_ADDR, netif)
|
|
446
|
-
} catch
|
|
447
|
-
//
|
|
448
|
-
console.log(`Catching error on dropMembership: ${JSON.stringify(e)}`)
|
|
448
|
+
} catch {
|
|
449
|
+
// Dropping a membership that was never added throws, and does not matter
|
|
449
450
|
}
|
|
450
451
|
})
|
|
451
452
|
}
|
package/package.json
CHANGED