Skip to content

Commit

Permalink
Merge pull request #2522 from homebridge/homebridge-version-check
Browse files Browse the repository at this point in the history
Do not prevent Homebridge loading plugins based on Homebridge engines req.
  • Loading branch information
oznu committed Apr 27, 2020
2 parents 2383be3 + 2d19a77 commit 3e35b91
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "homebridge",
"description": "HomeKit support for the impatient",
"version": "1.0.0",
"version": "1.0.1",
"scripts": {
"dev": "DEBUG=* ./bin/homebridge -D -P example-plugins/ || true",
"lint": "eslint 'src/**/*.{js,ts,json}'",
Expand Down
6 changes: 4 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ export class Plugin {

// make sure the version is satisfied by the currently running version of HomeBridge
if (!satisfies(getVersion(), versionRequired, { includePrerelease: true })) {
throw new Error(`Plugin ${this.pluginPath} requires a HomeBridge version of ${versionRequired} which does \
not satisfy the current HomeBridge version of ${getVersion()}. You may need to upgrade your installation of HomeBridge.`);
// TODO - change this back to an error
log.error(`The plugin "${this.pluginName}" requires a Homebridge version of ${versionRequired} which does \
not satisfy the current Homebridge version of ${getVersion()}. You may need to update this plugin (or Homebridge) to a newer version. \
You may face unexpected issues or stablity problems running this plugin.`);
}

// make sure the version is satisfied by the currently running version of Node
Expand Down

0 comments on commit 3e35b91

Please sign in to comment.