Skip to content

Commit

Permalink
Fix stuttering on/off status
Browse files Browse the repository at this point in the history
  • Loading branch information
Joolee committed Feb 22, 2022
1 parent f93aa6b commit 41e56df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/philips-jointspace/device.js
Expand Up @@ -329,8 +329,10 @@ class PhilipsTV extends Homey.Device {
});
}
}).catch(error => {
this.setCapabilityValue('onoff', false)
.catch(this.error);
if(error.code !== 'ECONNRESET') {
this.setCapabilityValue('onoff', false)
.catch(this.error);
}
}),
this.getJointspaceClient().getAudioData().then((response) => {
let muted = (response.muted === true);
Expand Down

0 comments on commit 41e56df

Please sign in to comment.