Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoduj committed Mar 24, 2019
1 parent 3e12e9c commit 6628bd1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 7 additions & 6 deletions harmonyAsTVPlatform.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ HarmonyPlatformAsTVPlatform.prototype = {
callback(null);
}.bind(this)
);

characteristic.on(
'get',
function(callback) {
Expand Down Expand Up @@ -727,9 +728,9 @@ HarmonyPlatformAsTVPlatform.prototype = {
let idConf = service.controlService.id;
this.log.debug(
'INFO - GET Characteristic.CurrentVisibilityState : ' +
this.savedVisibility[idConf]
? this.savedVisibility[idConf]
: 'DEFAULT - ' + Characteristic.TargetVisibilityState.SHOWN
(this.savedVisibility[idConf]
? this.savedVisibility[idConf]
: 'DEFAULT - ' + Characteristic.TargetVisibilityState.SHOWN)
);
if (this.savedVisibility[idConf])
callback(null, this.savedVisibility[idConf]);
Expand All @@ -745,9 +746,9 @@ HarmonyPlatformAsTVPlatform.prototype = {
let idConf = service.controlService.id;
this.log.debug(
'INFO - GET Characteristic.TargetVisibilityState : ' +
this.savedVisibility[idConf]
? this.savedVisibility[idConf]
: 'DEFAULT - ' + Characteristic.TargetVisibilityState.SHOWN
(this.savedVisibility[idConf]
? this.savedVisibility[idConf]
: 'DEFAULT - ' + Characteristic.TargetVisibilityState.SHOWN)
);
if (this.savedVisibility[idConf])
callback(null, this.savedVisibility[idConf]);
Expand Down
4 changes: 1 addition & 3 deletions harmonyBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,7 @@ HarmonyBase.prototype = {
let service = myHarmonyAccessory.services[s];
if (service.type == HOME_TYPE) {
let newValue = data[service.controlService.id];
harmonyPlatform.log.debug(
'INFO - refreshHomeSwitch - got status for ' + newValue
);

if (newValue) {
let characteristic = service.controlService.getCharacteristic(
Characteristic.On
Expand Down

0 comments on commit 6628bd1

Please sign in to comment.