diff --git a/esphome/core/component.h b/esphome/core/component.h index e8782f1327..35f92c5d24 100644 --- a/esphome/core/component.h +++ b/esphome/core/component.h @@ -5,6 +5,7 @@ #include #include +#include "esphome/core/helpers.h" #include "esphome/core/log.h" #include "esphome/core/optional.h" @@ -217,7 +218,7 @@ class Component { void status_set_warning(const LogString *message); // Remove before 2026.12.0 - ESPDEPRECATED("Use status_set_error(LOG_STR(\"message\")) instead. Removed in 2026.12.0", "2025.6.0") + ESPDEPRECATED("Use status_set_error(LOG_STR(\"message\")) instead. Removed in 2026.12.0", "2025.6.0"); void status_set_error(const char *message = nullptr); void status_set_error(const LogString *message);