mirror of
https://github.com/esphome/esphome.git
synced 2025-04-14 23:00:29 +01:00
[scd4x] Fix not passing arguments to templatable value for perform_forced_calibration (#3495)
This commit is contained in:
parent
9dc804ee27
commit
cd35ead890
@ -11,7 +11,7 @@ template<typename... Ts> class PerformForcedCalibrationAction : public Action<Ts
|
|||||||
public:
|
public:
|
||||||
void play(Ts... x) override {
|
void play(Ts... x) override {
|
||||||
if (this->value_.has_value()) {
|
if (this->value_.has_value()) {
|
||||||
this->parent_->perform_forced_calibration(value_.value());
|
this->parent_->perform_forced_calibration(this->value_.value(x...));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user