diff --git a/esphome/components/event/event.h b/esphome/components/event/event.h index e6fc7111c8b..edfe7d00314 100644 --- a/esphome/components/event/event.h +++ b/esphome/components/event/event.h @@ -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).