Skip to content

Commit

Permalink
Fix version checking (#366)
Browse files Browse the repository at this point in the history
* Fix GitHub username
* Fix parameter order
* Fix variable name
* Update repo name and owner

Co-authored-by: Cameron <32912464+kiwi-cam@users.noreply.github.com>
  • Loading branch information
dnicolson and kiwi-cam authored Aug 1, 2021
1 parent d29340d commit 0563c25
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Improved the temperature update process when using MQTT to make the UI more responsive
- Fixed 'One of your plugins incorrectly registered an external accessory using the platform name ([object Object]) and not the plugin identifier' message which caused TVs to fail in HOOBS
- Fixes Version checks on start-up (Thanks @dnicolson)

## [4.4.5] - 2021-06-23
### Changed
Expand Down
6 changes: 3 additions & 3 deletions helpers/checkForUpdates.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ const pkg = require('../package.json');

const options = {
repo: 'homebridge-broadlink-rm',
owner: 'kiwicam',
owner: 'kiwi-cam',
currentVersion: pkg.version
};


const checkForUpdates = () => {
versionCheck (options, (update, error) => {
versionCheck (options, (error, update) => {
// if (error) throw error;
if (update) {
console.log(`\x1b[32m[UPDATE AVAILABLE] \x1b[0mVersion ${update.tag_name} of homebridge-broadlink-rm-tv is available. The release notes can be found here: \x1b[4mhttps://github.com/lprhodes/homebridge-broadlink-rm/releases/\x1b[0m`);
console.log(`\x1b[32m[UPDATE AVAILABLE] \x1b[0mVersion ${update.name} of Homebridge Broadlink RM Pro is available. The release notes can be found here: \x1b[4mhttps://github.com/${options.owner}/homebridge-broadlink-rm/releases/\x1b[0m`);
}
});
}
Expand Down
4 changes: 2 additions & 2 deletions 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,6 +1,6 @@
{
"name": "homebridge-broadlink-rm-pro",
"version": "4.4.6-beta.3",
"version": "4.4.6-beta.4",
"description": "Broadlink RM plugin (including the mini and pro) for homebridge with AC Pro and TV features",
"license": "ISC",
"scripts": {
Expand Down

0 comments on commit 0563c25

Please sign in to comment.