Skip to content

Commit

Permalink
fix #282
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Sep 8, 2024
1 parent 8ee5e12 commit 11785ae
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- after update to 4.7.x buttons, sensors, volume display type need to be configure again using config UI
- after update to 3.15.x need remove the accessory frome Home app and add it again

## [5.1.11] - (07.09.2024)

## Changes

- fix [#282](https://github.com/grzegorz914/homebridge-denon-tv/issues/282)
- cleanup

## [5.1.5] - (06.09.2024)

## Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Denon TV",
"name": "homebridge-denon-tv",
"version": "5.1.10",
"version": "5.1.11",
"description": "Homebridge plugin to control Denon/Marantz AV Receivers.",
"license": "MIT",
"author": "grzegorz914",
Expand Down
4 changes: 2 additions & 2 deletions src/mainzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class MainZone extends EventEmitter {
this.pictureMode = pictureModeHomeKit;

if (!this.disableLogInfo) {
const name = index !== -1 ? this.inputsConfigured[index].name : reference;
const name = input ? input.name : reference;
this.emit('message', `Power: ${power ? 'ON' : 'OFF'}`);
this.emit('message', `Input Name: ${name}`);
this.emit('message', `Reference: ${reference}`);
Expand Down Expand Up @@ -388,7 +388,7 @@ class MainZone extends EventEmitter {

return true;
} catch (error) {
await this.denon.impulseGenerato.stop();
await this.denon.impulseGenerator.stop();
throw new Error(`Start error: ${error.message || error}, check again in 15s.`);
};
};
Expand Down
4 changes: 2 additions & 2 deletions src/surround.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class Surround extends EventEmitter {
this.pictureMode = pictureModeHomeKit;

if (!this.disableLogInfo) {
const name = index !== -1 ? this.inputsConfigured[index].name : reference;
const name = input ? input.name : reference;
this.emit('message', `Power: ${power ? 'ON' : 'OFF'}`);
this.emit('message', `Surround Name: ${name}`);
this.emit('message', `Reference: ${reference}`);
Expand Down Expand Up @@ -356,7 +356,7 @@ class Surround extends EventEmitter {

return true;
} catch (error) {
await this.denon.impulseGenerato.stop();
await this.denon.impulseGenerator.stop();
throw new Error(`Start error: ${error.message || error}, check again in 15s.`);
};
};
Expand Down
4 changes: 2 additions & 2 deletions src/zone2.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class Zone2 extends EventEmitter {
this.pictureMode = pictureModeHomeKit;

if (!this.disableLogInfo) {
const name = index !== -1 ? this.inputsConfigured[index].name : reference;
const name = input ? input.name : reference;
this.emit('message', `Power: ${power ? 'ON' : 'OFF'}`);
this.emit('message', `Input Name: ${name}`);
this.emit('message', `Reference: ${reference}`);
Expand Down Expand Up @@ -386,7 +386,7 @@ class Zone2 extends EventEmitter {

return true;
} catch (error) {
await this.denon.impulseGenerato.stop();
await this.denon.impulseGenerator.stop();
throw new Error(`Start error: ${error.message || error}, check again in 15s.`);
};
};
Expand Down
4 changes: 2 additions & 2 deletions src/zone3.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class Zone3 extends EventEmitter {
this.pictureMode = pictureModeHomeKit;

if (!this.disableLogInfo) {
const name = index !== -1 ? this.inputsConfigured[index].name : reference;
const name = input ? input.name : reference;
this.emit('message', `Power: ${power ? 'ON' : 'OFF'}`);
this.emit('message', `Input Name: ${name}`);
this.emit('message', `Reference: ${reference}`);
Expand Down Expand Up @@ -386,7 +386,7 @@ class Zone3 extends EventEmitter {

return true;
} catch (error) {
await this.denon.impulseGenerato.stop();
await this.denon.impulseGenerator.stop();
throw new Error(`Start error: ${error.message || error}, check again in 15s.`);
};
};
Expand Down

0 comments on commit 11785ae

Please sign in to comment.