Skip to content

Commit

Permalink
2021.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrandlehner committed Jan 10, 2021
1 parent fe721b4 commit 1d913f8
Show file tree
Hide file tree
Showing 3 changed files with 168 additions and 69 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class OnkyoAccessory {
this.m_state = false;
this.v_state = 0;
this.i_state = null;
this.interval = this.poll_status_interval.parseInt(10);
this.interval = Number.parseInt(this.poll_status_interval, 10);
this.avrManufacturer = 'Onkyo';
this.avrSerial = this.config.serial || this.ip_address;
this.log.debug('avrSerial: %s', this.avrSerial);
Expand Down Expand Up @@ -863,9 +863,9 @@ class OnkyoAccessory {
.getCharacteristic(Characteristic.On)
// Inverted logic taken from https://github.com/langovoi/homebridge-upnp
.on('get', callback => {
this.getMuteState((err, value) => {
if (err) {
callback(err);
this.getMuteState((error, value) => {
if (error) {
callback(error);
return;
}

Expand Down
Loading

0 comments on commit 1d913f8

Please sign in to comment.