From d496676c8436f354880fd661cc78fc8da5b9a56a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 30 Oct 2025 13:30:22 -0500 Subject: [PATCH] preen --- esphome/components/select/select.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/esphome/components/select/select.h b/esphome/components/select/select.h index 26e5c6dbde..22481941b4 100644 --- a/esphome/components/select/select.h +++ b/esphome/components/select/select.h @@ -32,8 +32,12 @@ class Select : public EntityBase { public: SelectTraits traits; - /// @deprecated Use current_option() instead. This member will be removed in a future release. - __attribute__((deprecated("Use current_option() instead of .state"))) std::string state{}; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" + /// @deprecated Use current_option() instead. This member will be removed in ESPHome 2026.5.0. + __attribute__((deprecated("Use current_option() instead of .state. Will be removed in 2026.5.0"))) + std::string state{}; +#pragma GCC diagnostic pop void publish_state(const std::string &state); void publish_state(const char *state);