Code cleanup fixes for the number component (#3458)

Co-authored-by: Maurice Makaay <mmakaay1@xs4all.net>
This commit is contained in:
Maurice Makaay 2022-05-11 01:02:49 +02:00 committed by GitHub
parent 62f9e181e0
commit c569f5ddcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View file

@ -33,7 +33,6 @@ class Number : public EntityBase {
void publish_state(float state);
NumberCall make_call() { return NumberCall(this); }
void set(float value) { make_call().set_value(value).perform(); }
void add_on_state_callback(std::function<void(float)> &&callback);

View file

@ -23,8 +23,6 @@ class NumberCall {
void perform();
NumberCall &set_value(float value);
const optional<float> &get_value() const { return value_; }
NumberCall &number_increment(bool cycle);
NumberCall &number_decrement(bool cycle);
NumberCall &number_to_min();