mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 09:01:49 +00:00 
			
		
		
		
	break it out, logic was too hard to follow
This commit is contained in:
		@@ -49,7 +49,7 @@ SelectCall &SelectCall::with_index(size_t index) {
 | 
				
			|||||||
optional<size_t> SelectCall::calculate_target_index_(const char *name) {
 | 
					optional<size_t> SelectCall::calculate_target_index_(const char *name) {
 | 
				
			||||||
  const auto &options = this->parent_->traits.get_options();
 | 
					  const auto &options = this->parent_->traits.get_options();
 | 
				
			||||||
  if (options.empty()) {
 | 
					  if (options.empty()) {
 | 
				
			||||||
    ESP_LOGW(TAG, "'%s' - Cannot perform SelectCall, select has no options", name);
 | 
					    ESP_LOGW(TAG, "'%s' - Select has no options", name);
 | 
				
			||||||
    return {};
 | 
					    return {};
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user