mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Merge branch 'event_emitter_vector' into integration
This commit is contained in:
		| @@ -1,14 +0,0 @@ | |||||||
| #include "event_emitter.h" |  | ||||||
|  |  | ||||||
| namespace esphome { |  | ||||||
| namespace event_emitter { |  | ||||||
|  |  | ||||||
| static const char *const TAG = "event_emitter"; |  | ||||||
|  |  | ||||||
| void raise_event_emitter_full_error() { |  | ||||||
|   ESP_LOGE(TAG, "EventEmitter has reached the maximum number of listeners for event"); |  | ||||||
|   ESP_LOGW(TAG, "Removing listener to make space for new listener"); |  | ||||||
| } |  | ||||||
|  |  | ||||||
| }  // namespace event_emitter |  | ||||||
| }  // namespace esphome |  | ||||||
| @@ -10,7 +10,6 @@ namespace event_emitter { | |||||||
|  |  | ||||||
| using EventEmitterListenerID = uint32_t; | using EventEmitterListenerID = uint32_t; | ||||||
| static constexpr EventEmitterListenerID INVALID_LISTENER_ID = 0; | static constexpr EventEmitterListenerID INVALID_LISTENER_ID = 0; | ||||||
| void raise_event_emitter_full_error(); |  | ||||||
|  |  | ||||||
| // EventEmitter class that can emit events with a specific name (it is highly recommended to use an enum class for this) | // EventEmitter class that can emit events with a specific name (it is highly recommended to use an enum class for this) | ||||||
| // and a list of arguments. Supports multiple listeners for each event. | // and a list of arguments. Supports multiple listeners for each event. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user