mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 09:01:49 +00:00 
			
		
		
		
	fix: use uniform initialization for input_id in set_available_outputs method
This commit is contained in:
		@@ -100,7 +100,7 @@ void DynamicLamp::set_available_outputs(std::string output_list) {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
  for ( std::string s : v )
 | 
					  for ( std::string s : v )
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    std::string input_id = this->trim_(s.c_str());
 | 
					    std::string input_id{ this->trim_(s.c_str()) };
 | 
				
			||||||
    this->available_outputs_[counter] = LinkedOutput{true, input_id, counter, 0, 0, 1.0, false};
 | 
					    this->available_outputs_[counter] = LinkedOutput{true, input_id, counter, 0, 0, 1.0, false};
 | 
				
			||||||
    counter++;
 | 
					    counter++;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user