mirror of
https://github.com/esphome/esphome.git
synced 2026-09-25 14:00:25 +00:00
[core] Add no-arg status_set_warning() to allow linker GC of const char* overload (#14821)
This commit is contained in:
@@ -392,6 +392,7 @@ bool Component::set_status_flag_(uint8_t flag) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void Component::status_set_warning() { this->status_set_warning((const LogString *) nullptr); }
|
||||
void Component::status_set_warning(const char *message) {
|
||||
if (!this->set_status_flag_(STATUS_LED_WARNING))
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user