[event] Use a user provided default constructor

This commit is contained in:
J. Nick Koston
2026-09-11 21:28:18 -05:00
parent eecea15f4f
commit df832b6031
+3
View File
@@ -21,6 +21,9 @@ namespace esphome::event {
class Event : public EntityBase {
public:
// User provided, not "= default": `new(p) Event()` would zero-fill .bss that is already zero.
Event() {}
void trigger(const std::string &event_type);
/// Set the event types supported by this event (from initializer list).