mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 18:18:43 +00:00
[template] Use a user provided default constructor for TemplateEvent (#19127)
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
|
||||
namespace esphome::template_ {
|
||||
|
||||
class TemplateEvent final : public Component, public event::Event {};
|
||||
class TemplateEvent final : public Component, public event::Event {
|
||||
public:
|
||||
// User provided, not "= default": `new(p) TemplateEvent()` would zero-fill .bss that is already zero.
|
||||
TemplateEvent() {}
|
||||
};
|
||||
|
||||
} // namespace esphome::template_
|
||||
|
||||
Reference in New Issue
Block a user