1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-11 02:02:09 +00:00
This commit is contained in:
J. Nick Koston
2026-01-14 22:32:12 -10:00
parent 4cf0e2ef0d
commit 142fb85ff0
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ void log_button(const char *tag, const char *prefix, const char *type, Button *o
}
void Button::press() {
ESP_LOGD(TAG, "'%s' Pressed.", this->get_name().c_str());
ESP_LOGD(TAG, "'%s' >> Pressed", this->get_name().c_str());
this->press_action();
this->press_callback_.call();
}

View File

@@ -22,7 +22,7 @@ void Event::trigger(const std::string &event_type) {
return;
}
this->last_event_type_ = found;
ESP_LOGD(TAG, "'%s' Triggered event '%s'", this->get_name().c_str(), this->last_event_type_);
ESP_LOGD(TAG, "'%s' >> '%s'", this->get_name().c_str(), this->last_event_type_);
this->event_callback_.call(event_type);
#if defined(USE_EVENT) && defined(USE_CONTROLLER_REGISTRY)
ControllerRegistry::notify_event(this);