From 84b2bea7060d6c6be20db6e3e5d2a6901af37aa7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 24 Nov 2025 12:12:05 -0600 Subject: [PATCH] fix dual dep --- esphome/core/component.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esphome/core/component.h b/esphome/core/component.h index 63d758d25f..82ac66f23c 100644 --- a/esphome/core/component.h +++ b/esphome/core/component.h @@ -161,7 +161,10 @@ class Component { // Remove before 2026.6.0 ESPDEPRECATED("Use mark_failed(LOG_STR(message)) instead. Will stop working in 2026.6.0", "2025.12.0") void mark_failed(const char *message) { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" this->status_set_error(message); +#pragma GCC diagnostic pop this->mark_failed(); }