@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 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 (e) {
436
- // eslint-disable-next-line no-console
437
- console.log(`Catching error on address already in use: ${JSON.stringify(e)}`)
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 (e) {
447
- // eslint-disable-next-line no-console
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
@@ -3,7 +3,7 @@
3
3
  "displayName": "Homebridge eWeLink",
4
4
  "alias": "eWeLink",
5
5
  "type": "module",
6
- "version": "12.18.2-beta.1",
6
+ "version": "12.18.2-beta.2",
7
7
  "description": "Homebridge plugin to integrate eWeLink devices into HomeKit.",
8
8
  "author": {
9
9
  "name": "bwp91",