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:
@@ -94,7 +94,7 @@ void DynamicLamp::set_available_outputs(std::string output_list) {
|
|||||||
for ( std::string s : v )
|
for ( std::string s : v )
|
||||||
{
|
{
|
||||||
std::string id_string;
|
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;
|
this->available_outputs_[counter] = id_string;
|
||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user