Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fixing climate platform current temperature display (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwelch authored and robbiet480 committed Oct 26, 2017
1 parent 93177bd commit 9231436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accessories/climate.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ HomeAssistantClimate.prototype = {
this.client.fetchState(this.entity_id, function (data) {
if (data) {
if (getTempUnits(data) === 'FAHRENHEIT') {
callback(null, fahrenheitToCelsius(data.attributes.temperature));
callback(null, fahrenheitToCelsius(data.attributes.current_temperature));
} else {
callback(null, data.attributes.temperature);
callback(null, data.attributes.current_temperature);
}
} else {
callback(communicationError);
Expand Down

0 comments on commit 9231436

Please sign in to comment.