1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00

fix: change return type of get_lamp_name function in DynamicLampComponent to unsigned char array

This commit is contained in:
Oliver Kleinecke 2025-02-19 22:32:14 +01:00
parent 84b4080ee6
commit 2acd5fe505
2 changed files with 2 additions and 2 deletions

View File

@ -413,7 +413,7 @@ bool DynamicLampComponent::write_state_(uint8_t lamp_number, float state) {
return false;
}
std::string DynamicLampComponent::get_lamp_name(uint8_t lamp_number) {
unsigned char[16] DynamicLampComponent::get_lamp_name(uint8_t lamp_number) {
return this->active_lamps_[lamp_number].name;
}

View File

@ -104,7 +104,7 @@ class DynamicLampComponent : public Component {
void set_save_mode(uint8_t save_mode);
void add_lamp(std::string name);
void remove_lamp(std::string name);
std::string get_lamp_name(uint8_t lamp_number);
unsigned char[16] get_lamp_name(uint8_t lamp_number);
void add_output_to_lamp(std::string lamp_name, LinkedOutput *output);
void remove_output_from_lamp(std::string lamp_name, LinkedOutput *output);
std::array<bool, 16> get_lamp_outputs(uint8_t lamp_number);