Skip to content

Commit

Permalink
Fix slider .5
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jan 5, 2024
1 parent bdc6ad1 commit 9010806
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/jeedom-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1503,8 +1503,10 @@ JeedomClient.prototype.executeDeviceAction = function(ID, action, param) {
options = {color:param};
} else if (action == 'GBtoggleSelect') {
options = {select:param};
} else if (!isNaN(parseInt(param))) {
} else if (!isNaN(parseInt(param)) && parseInt(param) == param) {
options = {slider:parseInt(param)};
} else if (!isNaN(parseFloat(param)) && parseFloat(param) == param) {
options = {slider:parseFloat(param)};
}
}

Expand Down

0 comments on commit 9010806

Please sign in to comment.