mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	fix: update LinkedOutput initialization to use c_str() 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 ) | ||||
|   { | ||||
|     this->available_outputs_[counter] = LinkedOutput{true, static_cast<std::string>(this->trim_(s)), counter, 0, 0, 1.0, false}; | ||||
|     this->available_outputs_[counter] = LinkedOutput{true, this->trim_(s.c_str()), counter, 0, 0, 1.0, false}; | ||||
|     counter++; | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user