Skip to content

Commit

Permalink
Fix no - position_interval #65
Browse files Browse the repository at this point in the history
  • Loading branch information
dxdc committed Feb 9, 2022
1 parent 7146bb5 commit 83c7edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ BlindsHTTPAccessory.prototype.setCurrentPositionByUrl = function (callback) {
try {
const json = JSON.parse(body);
if (this.positionJsonata) {
body = this.positionJsonata.evaluate(body);
body = this.positionJsonata.evaluate(json);
} else if (typeof json === 'object') {
body = Object.values(json).filter(function (val) {
return !isNaN(val);
Expand Down

0 comments on commit 83c7edc

Please sign in to comment.