mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
[lc709203f] Move the single store setters into the header (#19290)
This commit is contained in:
@@ -275,8 +275,4 @@ void Lc709203f::set_pack_size(uint16_t pack_size) {
|
||||
// not cause an error or crash, so I am not doing any additional checking here.
|
||||
}
|
||||
|
||||
void Lc709203f::set_thermistor_b_constant(uint16_t b_constant) { this->b_constant_ = b_constant; }
|
||||
|
||||
void Lc709203f::set_pack_voltage(LC709203FBatteryVoltage pack_voltage) { this->pack_voltage_ = pack_voltage; }
|
||||
|
||||
} // namespace esphome::lc709203f
|
||||
|
||||
@@ -26,8 +26,8 @@ class Lc709203f final : public sensor::Sensor, public PollingComponent, public i
|
||||
void dump_config() override;
|
||||
|
||||
void set_pack_size(uint16_t pack_size);
|
||||
void set_thermistor_b_constant(uint16_t b_constant);
|
||||
void set_pack_voltage(LC709203FBatteryVoltage pack_voltage);
|
||||
void set_thermistor_b_constant(uint16_t b_constant) { this->b_constant_ = b_constant; }
|
||||
void set_pack_voltage(LC709203FBatteryVoltage pack_voltage) { this->pack_voltage_ = pack_voltage; }
|
||||
void set_voltage_sensor(sensor::Sensor *voltage_sensor) { voltage_sensor_ = voltage_sensor; }
|
||||
void set_battery_remaining_sensor(sensor::Sensor *battery_remaining_sensor) {
|
||||
battery_remaining_sensor_ = battery_remaining_sensor;
|
||||
|
||||
Reference in New Issue
Block a user