ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
calibration_number.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::bl0940 {
8
10 public:
11 void setup() override;
12 void dump_config() override;
13 float get_setup_priority() const override { return setup_priority::HARDWARE; }
14
15 void set_restore_value(bool restore_value) { this->restore_value_ = restore_value; }
16
17 protected:
18 void control(float value) override;
19 bool restore_value_{true};
20
22};
23
24} // namespace esphome::bl0940
void set_restore_value(bool restore_value)
float get_setup_priority() const override
Base-class for all numbers.
Definition number.h:29
constexpr float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Definition component.h:41