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:
@@ -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++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user