mirror of
https://github.com/esphome/esphome.git
synced 2025-09-09 23:02:23 +01:00
refactor: update available_outputs to use LinkedOutput struct in DynamicLamp
This commit is contained in:
@@ -95,13 +95,10 @@ void DynamicLamp::set_available_outputs(std::string output_list) {
|
||||
{
|
||||
std::string id_string;
|
||||
id_string = static_cast<std::string>(this->trim_(s.c_str()));
|
||||
this->available_outputs_[counter] = id_string;
|
||||
this->available_outputs_[counter] = static_cast<LinkedOutput>({true, id_string, 0, 0, 1.0, false});
|
||||
counter++;
|
||||
}
|
||||
}
|
||||
void DynamicLamp::set_lamp_count(uint8_t lamp_count) {
|
||||
|
||||
}
|
||||
|
||||
void DynamicLamp::set_lamp_values_(uint8_t lamp_number, bool active, uint16_t selected_outputs, uint8_t mode, uint8_t mode_value) {
|
||||
|
||||
|
Reference in New Issue
Block a user