Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Update total_daily_energy.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
OttoWinter authored Nov 12, 2018
1 parent d50e292 commit 4fe4c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esphomelib/sensor/total_daily_energy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void TotalDailyEnergy::setup() {

float recovered;
if (this->pref_.load(&recovered)) {
this->publish_state(recovered);
this->publish_state_and_save_(recovered);
} else {
this->publish_state_and_save_(0);
}
Expand Down

0 comments on commit 4fe4c56

Please sign in to comment.