mirror of
https://github.com/esphome/esphome.git
synced 2026-10-16 19:22:49 +00:00
[event] Use a user provided default constructor
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user