mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 18:22:48 +00:00
[template] Use a user provided default constructor for TemplateBinaryOutput
This commit is contained in:
@@ -8,6 +8,8 @@ namespace esphome::template_ {
|
||||
|
||||
class TemplateBinaryOutput final : public output::BinaryOutput {
|
||||
public:
|
||||
// User provided, not "= default": `new(p) TemplateBinaryOutput()` would zero-fill .bss that is already zero.
|
||||
TemplateBinaryOutput() {}
|
||||
Trigger<bool> *get_trigger() { return &this->trigger_; }
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user