mirror of
https://github.com/esphome/esphome.git
synced 2026-02-26 14:03:14 -07:00
fix date
This commit is contained in:
@@ -37,7 +37,7 @@ struct ComponentErrorMessage {
|
||||
const Component *component;
|
||||
const char *message;
|
||||
// Track if message is flash pointer (needs LOG_STR_ARG) or RAM pointer
|
||||
// Remove before 2026.12.0 when deprecated const char* API is removed
|
||||
// Remove before 2026.6.0 when deprecated const char* API is removed
|
||||
bool is_flash_ptr;
|
||||
};
|
||||
|
||||
@@ -54,7 +54,7 @@ std::unique_ptr<std::vector<ComponentErrorMessage>> component_error_messages;
|
||||
std::unique_ptr<std::vector<ComponentPriorityOverride>> setup_priority_overrides;
|
||||
|
||||
// Helper to store error messages - reduces duplication between deprecated and new API
|
||||
// Remove before 2026.12.0 when deprecated const char* API is removed
|
||||
// Remove before 2026.6.0 when deprecated const char* API is removed
|
||||
void store_component_error_message(const Component *component, const char *message, bool is_flash_ptr) {
|
||||
// Lazy allocate the error messages vector if needed
|
||||
if (!component_error_messages) {
|
||||
|
||||
@@ -217,8 +217,8 @@ class Component {
|
||||
void status_set_warning(const char *message = nullptr);
|
||||
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")
|
||||
// Remove before 2026.6.0
|
||||
ESPDEPRECATED("Use status_set_error(LOG_STR(message)) instead. Will stop working in 2026.6.0", "2025.12.0")
|
||||
void status_set_error(const char *message = nullptr);
|
||||
void status_set_error(const LogString *message);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user