mirror of
https://github.com/esphome/esphome.git
synced 2025-09-17 18:52:19 +01:00
cleanup
This commit is contained in:
@@ -289,7 +289,6 @@ void Component::status_set_warning(const char *message) {
|
||||
ESP_LOGW(TAG, "%s set Warning flag: %s", this->get_component_source(),
|
||||
message ? message : LOG_STR_LITERAL("unspecified"));
|
||||
}
|
||||
#ifdef USE_STORE_LOG_STR_IN_FLASH
|
||||
void Component::status_set_warning(const LogString *message) {
|
||||
// Don't spam the log. This risks missing different warning messages though.
|
||||
if ((this->component_state_ & STATUS_LED_WARNING) != 0)
|
||||
@@ -299,7 +298,6 @@ void Component::status_set_warning(const LogString *message) {
|
||||
ESP_LOGW(TAG, "%s set Warning flag: %s", this->get_component_source(),
|
||||
message ? LOG_STR_ARG(message) : LOG_STR_LITERAL("unspecified"));
|
||||
}
|
||||
#endif
|
||||
void Component::status_set_error(const char *message) {
|
||||
if ((this->component_state_ & STATUS_LED_ERROR) != 0)
|
||||
return;
|
||||
|
@@ -206,9 +206,7 @@ class Component {
|
||||
bool status_has_error() const;
|
||||
|
||||
void status_set_warning(const char *message = nullptr);
|
||||
#ifdef USE_STORE_LOG_STR_IN_FLASH
|
||||
void status_set_warning(const LogString *message);
|
||||
#endif
|
||||
|
||||
void status_set_error(const char *message = nullptr);
|
||||
|
||||
|
Reference in New Issue
Block a user