Skip to content

Commit

Permalink
Rename ConstantSensor::set_value to set for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mairas committed Apr 29, 2024
1 parent 08c1ce3 commit 60b49e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sensesp/sensors/constant_sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ConstantSensor : public Sensor<T> {
[this]() { this->emit(value_); });
}

void set_value(T value) { value_ = value; }
void set(T value) { value_ = value; }

protected:
virtual void get_configuration(JsonObject &doc) override {
Expand Down

0 comments on commit 60b49e2

Please sign in to comment.