Skip to content

Commit

Permalink
Merge pull request #104 from Grizzelbee/Development
Browse files Browse the repository at this point in the history
fixed typo in code line
  • Loading branch information
Grizzelbee authored May 15, 2021
2 parents 4143f98 + 449bc9f commit 8f4b32f
Show file tree
Hide file tree
Showing 2 changed files with 13,992 additions and 1,612 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ class dysonAirPurifier extends utils.Adapter {
if (deviceConfig[3]==='number'){
// TP02: When continuous monitoring is off and the fan ist switched off - temperature and humidity loose their values.
// test whether the values are invalid and config.keepValues is true to prevent the old values from beeing destroyed
if ( message[deviceConfig[0] === 'OFF' && adapter.config.keepValues ) {
if ( message[deviceConfig[0]] === 'OFF' && adapter.config.keepValues ) {
continue;
};
}
// convert temperature to configured unit
value = Number.parseInt(message[deviceConfig[0]], 10);
if (deviceConfig[5] === 'value.temperature') {
Expand Down
Loading

0 comments on commit 8f4b32f

Please sign in to comment.