1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-08 14:22:21 +01:00

fix: simplify input_id initialization by using trim_ directly on string

This commit is contained in:
Oliver Kleinecke
2025-02-14 17:13:08 +01:00
parent 0b28f0acad
commit adddc301df

View File

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