From 7d2ebabec78d080b84c948c78a7f0fe5d3341848 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 30 Oct 2025 13:28:27 -0500 Subject: [PATCH] give people time to migrate since we can --- esphome/components/select/select.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esphome/components/select/select.cpp b/esphome/components/select/select.cpp index e495ab4a44..fae485709e 100644 --- a/esphome/components/select/select.cpp +++ b/esphome/components/select/select.cpp @@ -26,7 +26,10 @@ void Select::publish_state(size_t index) { const char *option = this->option_at(index); this->set_has_state(true); this->active_index_ = index; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" this->state = option; // Update deprecated member for backward compatibility +#pragma GCC diagnostic pop ESP_LOGD(TAG, "'%s': Sending state %s (index %zu)", this->get_name().c_str(), option, index); // Callback signature requires std::string, create temporary for compatibility this->state_callback_.call(std::string(option), index);