mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
fix: change return type of get_lamp_name function in DynamicLampComponent to unsigned char array
This commit is contained in:
parent
84b4080ee6
commit
2acd5fe505
@ -413,7 +413,7 @@ bool DynamicLampComponent::write_state_(uint8_t lamp_number, float state) {
|
|||||||
return false;
|
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;
|
return this->active_lamps_[lamp_number].name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ class DynamicLampComponent : public Component {
|
|||||||
void set_save_mode(uint8_t save_mode);
|
void set_save_mode(uint8_t save_mode);
|
||||||
void add_lamp(std::string name);
|
void add_lamp(std::string name);
|
||||||
void remove_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 add_output_to_lamp(std::string lamp_name, LinkedOutput *output);
|
||||||
void remove_output_from_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);
|
std::array<bool, 16> get_lamp_outputs(uint8_t lamp_number);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user