1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-09 23:02:23 +01:00

fix: cast trimmed output to std::string in set_available_outputs()

This commit is contained in:
Oliver Kleinecke
2025-02-14 14:57:30 +01:00
parent 8d0185aafe
commit e487fd4e42

View File

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