Compare commits

..
2 changed files with 2 additions and 5 deletions

No files matched your search

-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).
+2 -2
View File
@@ -30,8 +30,8 @@ class TextTraits {
TextMode get_mode() const { return this->mode_; }
protected:
int min_length_;
int max_length_;
int min_length_{0};
int max_length_{0};
const char *pattern_{""};
TextMode mode_{TEXT_MODE_TEXT};
};