mirror of
https://github.com/esphome/esphome.git
synced 2025-09-10 23:32:23 +01:00
fix: add error handling for lamp addition in DynamicLamp
This commit is contained in:
@@ -117,6 +117,7 @@ uint8_t DynamicLamp::add_lamp() {
|
|||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
this->call_error("No more lamps available");
|
||||||
}
|
}
|
||||||
|
|
||||||
void DynamicLamp::add_lamp_output_(uint8_t lamp_number, LinkedOutput output) {
|
void DynamicLamp::add_lamp_output_(uint8_t lamp_number, LinkedOutput output) {
|
||||||
|
Reference in New Issue
Block a user