Compare commits

..
Author SHA1 Message Date
J. Nick Koston a1d78cbbf7 [button] Use a user provided default constructor 2026-09-11 21:28:01 -05:00
2 changed files with 3 additions and 3 deletions
+3
View File
@@ -24,6 +24,9 @@ void log_button(const char *tag, const char *prefix, const char *type, Button *o
*/
class Button : public EntityBase {
public:
// User provided, not "= default": `new(p) Button()` would zero-fill .bss that is already zero.
Button() {}
/** Press this button. This is called by the front-end.
*
* For implementing buttons, please override press_action.
-3
View File
@@ -21,9 +21,6 @@ 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).