Djelibeybi / homebridge-button-platform

A Homebridge platform plugin to create virtual buttons that respond to HTTP requests from things like Flic buttons or an Elgato Stream Deck.
https://omg.dje.li/homebridge-button-platform/
Apache License 2.0
57 stars 3 forks source link

build(deps): bump homebridge-lib from 5.4.1 to 5.6.3 #130

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps homebridge-lib from 5.4.1 to 5.6.3.

Release notes

Sourced from homebridge-lib's releases.

v5.6.3

Bug Fixes

v5.6.2

Bug Fixes

Bump Dependencies

  • NodeJS v16.16.0 LTS;
  • Homebridge v1.5.0.

v5.6.1

Critical Bug Fix

On Homebridge installations with multiple plugins based on homebridge-lib, where homebridge-lib is deduped (installed only once instead of per plugin), homebridge-lib would produce a fatal error fatal: config.json: duplicate entry for ... platform and cause the Homebridge process to exit. In particular, this happens on installations that don't use npm to install plugins, like the recent Raspberry Pi installations using the apt package for Homebridge.

Please re-install the affected plugins, and they should pickup the latest homebridge-lib version, v5.6.1.

Additional Info

During startup, the plugins are loaded correctly:

[Jun 19 09:57:19] Loaded plugin: homebridge-p1@1.2.23
[Jun 19 09:57:19] Registering platform 'homebridge-p1.P1'
[Jun 19 09:57:19] ---
[Jun 19 09:57:19] Loaded plugin: homebridge-rpi@1.3.23
[Jun 19 09:57:19] Registering platform 'homebridge-rpi.RPi'
[Jun 19 09:57:19] ---
[Jun 19 09:57:19] Loaded plugin: homebridge-ws@2.5.22
[Jun 19 09:57:19] Registering platform 'homebridge-ws.WS'
[Jun 19 09:57:19] ---
[Jun 19 09:57:19] Loaded plugin: homebridge-zp@1.4.19
[Jun 19 09:57:19] Registering platform 'homebridge-zp.ZP'
[Jun 19 09:57:19] ---

But during initialisation, the subsequent plugins take on the identity of the first plugin. This causes homebridge-lib to think the same plugin is initialised multiple time, resulting in the duplicate entry fatal error.

[Jun 19 09:57:19] [P1] Initializing P1 platform...
[Jun 19 09:57:19] [P1] homebridge-p1 v1.2.23, node v16.15.1, homebridge v1.4.1, homebridge-lib v5.6.0
[Jun 19 09:57:19] [RPi] Initializing RPi platform...
[Jun 19 09:57:19] [RPi] homebridge-rpi v1.3.23, node v16.15.1, homebridge v1.4.1, homebridge-lib v5.6.0
[Jun 19 09:57:19] [Weather] Initializing WS platform...
[Jun 19 09:57:19] [Weather] fatal: config.json: duplicate entry for P1 platform
[Jun 19 09:57:19] [Weather] homebridge-p1 v1.2.23, node v16.15.1, homebridge v1.4.1, homebridge-lib v5.6.0
[Jun 19 09:57:19] [Sonos] Initializing ZP platform...
[Jun 19 09:57:19] [Sonos] fatal: config.json: duplicate entry for P1 platform
[Jun 19 09:57:19] [Sonos] homebridge-p1 v1.2.23, node v16.15.1, homebridge v1.4.1, homebridge-lib v5.6.0

Note that the subsequent plugins report the version of the first plugin, instead of their own version.

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #131.