Skip to content

Commit

Permalink
Fixes #37 (#38)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Cunningham <[email protected]>
  • Loading branch information
digitaldan authored Jun 13, 2017
1 parent 35a017a commit aefba01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oh2.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function getCurrentTemperature(context, event) {
payloadVersion: event.header.payloadVersion
};

var value = parseInt(item.state);
var value = parseFloat(item.state);
var payload = {
temperatureReading: {
value: isF ? utils.toC(value) : value
Expand Down Expand Up @@ -325,7 +325,7 @@ function getTargetTemperature(context, event) {
payloadVersion: event.header.payloadVersion
};

var value = parseInt(items.targetTemperature.state);
var value = parseFloat(items.targetTemperature.state);
var mode = utils.normalizeThermostatMode(items.heatingCoolingMode ? items.heatingCoolingMode.state : 'Unknown Mode');

var payload = {
Expand Down Expand Up @@ -379,7 +379,7 @@ function adjustTemperatureWithItems(context, event, currentTemperature, targetTe
return;
}

var curValue = parseInt(targetTemperature.state);
var curValue = parseFloat(targetTemperature.state);

/**
* Alexa needs everything in Celsius, we will need to respect what a user has set
Expand Down

0 comments on commit aefba01

Please sign in to comment.