mirror of
https://github.com/esphome/esphome.git
synced 2025-01-07 13:21:44 +01:00
Update event.cpp
This commit is contained in:
parent
1faf844e41
commit
acc3b7a254
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ void Event::trigger(const std::string &event_type) {
|
|||
ESP_LOGE(TAG, "'%s': invalid event type for trigger(): %s", this->get_name().c_str(), event_type.c_str());
|
||||
return;
|
||||
}
|
||||
state = &(*found);
|
||||
ESP_LOGD(TAG, "'%s' Triggered event '%s'", this->get_name().c_str(), state->c_str());
|
||||
last_event_type_ = &(*found);
|
||||
ESP_LOGD(TAG, "'%s' Triggered event '%s'", this->get_name().c_str(), last_event_type_->c_str());
|
||||
this->event_callback_.call(event_type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue