Skip to content

Commit

Permalink
Merge pull request #31 from kmaehashi/fix-temp-step
Browse files Browse the repository at this point in the history
Temperature must be parsed as float
  • Loading branch information
kmaehashi authored Jul 1, 2023
2 parents 1907967 + 250f2b1 commit fcb41af
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 @@ -471,7 +471,7 @@ class NatureRemoAircon {
if (! (mode === 'cool' || mode === 'warm')) {
continue;
}
const temperatures = modes[mode].temp.filter(t => t.match(/^\d+(\.\d+)?$/)).map(t => parseInt(t));
const temperatures = modes[mode].temp.filter(t => t.match(/^\d+(\.\d+)?$/)).map(t => parseFloat(t));
allTemperatures = allTemperatures.concat(temperatures);
}

Expand Down

0 comments on commit fcb41af

Please sign in to comment.