mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 19:44:08 +00:00
[template] Pack restore_value_ next to optimistic_ in TemplateNumber (#20149)
This commit is contained in:
@@ -25,8 +25,8 @@ class TemplateNumber final : public number::Number, public PollingComponent {
|
||||
protected:
|
||||
void control(float value) override;
|
||||
bool optimistic_{false};
|
||||
float initial_value_{NAN};
|
||||
bool restore_value_{false};
|
||||
float initial_value_{NAN};
|
||||
Trigger<float> set_trigger_;
|
||||
TemplateLambda<float> f_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user