Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jun 3, 2024
1 parent 82a8a89 commit 85557a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3176,6 +3176,7 @@ JeedomPlatform.prototype.setAccessoryValue = function(value, characteristic, ser
}
}
if(value == 0) {
// if we want to turn the switch off
if(service.actions.off) {
this.command('turnOff', null, service);
} else if(service.actions.slider && service.LightType) {
Expand All @@ -3184,6 +3185,7 @@ JeedomPlatform.prototype.setAccessoryValue = function(value, characteristic, ser
this.command('turnOff', null, service);
}
} else {
// if we want to turn the switch on
if(service.actions.on) {

Check failure on line 3189 in index.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Unexpected if as the only statement in an else block

Check failure on line 3189 in index.js

View workflow job for this annotation

GitHub Actions / build (21.x)

Unexpected if as the only statement in an else block
this.command('turnOn', null, service);
} else if(service.actions.slider && service.LightType) {
Expand Down

0 comments on commit 85557a4

Please sign in to comment.