Skip to content

Commit fcb41af

Browse files
authored
Merge pull request #31 from kmaehashi/fix-temp-step
Temperature must be parsed as float
2 parents 1907967 + 250f2b1 commit fcb41af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ class NatureRemoAircon {
471471
if (! (mode === 'cool' || mode === 'warm')) {
472472
continue;
473473
}
474-
const temperatures = modes[mode].temp.filter(t => t.match(/^\d+(\.\d+)?$/)).map(t => parseInt(t));
474+
const temperatures = modes[mode].temp.filter(t => t.match(/^\d+(\.\d+)?$/)).map(t => parseFloat(t));
475475
allTemperatures = allTemperatures.concat(temperatures);
476476
}
477477

0 commit comments

Comments
 (0)