1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 15:22:24 +01:00

fix: store trimmed output as a string in available_outputs in set_available_outputs method

This commit is contained in:
Oliver Kleinecke
2025-02-14 17:04:03 +01:00
parent 78ec5d50ce
commit d29b8f8948

View File

@@ -100,7 +100,8 @@ void DynamicLamp::set_available_outputs(std::string output_list) {
} }
for ( std::string s : v ) for ( std::string s : v )
{ {
this->available_outputs_[counter] = LinkedOutput{true, this->trim_(s.c_str()), counter, 0, 0, 1.0, false}; std::string input_id = this->trim_(s.c_str());
this->available_outputs_[counter] = LinkedOutput{true, input_id, counter, 0, 0, 1.0, false};
counter++; counter++;
} }
} }