This commit is contained in:
mrkvo 2024-05-16 11:49:54 +12:00 committed by GitHub
commit d36a771719
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ class IntegrationSensor : public sensor::Sensor, public Component {
void set_method(IntegrationMethod method) { method_ = method; }
void set_restore(bool restore) { restore_ = restore; }
void reset() { this->publish_and_save_(0.0f); }
void reset_to_value(float value) { this->publish_and_save_(value); }
protected:
void process_sensor_value_(float value);