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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user