1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 00:05:43 +00:00

[core] Use ESPDEPRECATED macro for deprecation warnings (#11755)

This commit is contained in:
J. Nick Koston
2025-11-06 21:37:02 -06:00
committed by GitHub
parent 7c30d57391
commit 3c41e080c5
2 changed files with 13 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ class Select : public EntityBase {
#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")))
ESPDEPRECATED("Use current_option() instead of .state. Will be removed in 2026.5.0", "2025.11.0")
std::string state{};
Select() = default;