[template] Use a user provided default constructor for TemplateEvent (#19127)

This commit is contained in:
J. Nick Koston
2026-09-16 20:38:00 +12:00
committed by GitHub
parent a495fe56f5
commit 925ddd6c09
@@ -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_