1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00

fix: simplify LinkedOutput initialization in set_available_outputs method

This commit is contained in:
Oliver Kleinecke
2025-02-14 16:56:50 +01:00
parent 0aeb2f91c6
commit f3fb868829

View File

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