mirror of
https://github.com/esphome/esphome.git
synced 2025-09-09 23:02:23 +01:00
fix: replace error call with mark_failed in add_lamp method
This commit is contained in:
@@ -117,7 +117,8 @@ uint8_t DynamicLamp::add_lamp() {
|
|||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
this->call_error("No more lamps available");
|
this->mark_failed();
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
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