Skip to content

Commit

Permalink
adjust climatastion submit
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Dec 2, 2023
1 parent a73e628 commit 6458a06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3673,8 +3673,9 @@ class VwWeconnect extends utils.Adapter {
body[key] = climateStates[keyName].val;
}
});
if (body.targetTemperature_C && body.targetTemperature_F) {
body.targetTemperature_F = Math.round((body.targetTemperature_C * 9) / 5 + 32);
if (body.targetTemperature_C) {
body.targetTemperature = body.targetTemperature_C;
body.targetTemperatureUnit = "celcius";
}
// body = JSON.stringify(body);
}
Expand Down

0 comments on commit 6458a06

Please sign in to comment.