Skip to content

Commit

Permalink
Merge pull request #126 from gorbunovav/125-esphome-2022.5.0-compatib…
Browse files Browse the repository at this point in the history
…ility-fix

#125: Fix compatibility with ESPHome 2022.5.0
  • Loading branch information
Lyr3x committed Jun 1, 2022
2 parents c16734a + 9224b13 commit a41e251
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/roode/roode.cpp
Expand Up @@ -183,7 +183,9 @@ void Roode::updateCounter(int delta) {
}
auto next = this->people_counter->state + (float) delta;
ESP_LOGI(TAG, "Updating people count: %d", (int) next);
this->people_counter->set(next);
auto call = this->people_counter->make_call();
call.set_value(next);
call.perform();
}
void Roode::recalibration() { calibrate_zones(); }

Expand Down

0 comments on commit a41e251

Please sign in to comment.