mirror of
https://github.com/esphome/esphome.git
synced 2025-11-01 15:41:52 +00:00
simplify
This commit is contained in:
@@ -297,8 +297,6 @@ const optional<ClimateMode> &ClimateCall::get_mode() const { return this->mode_;
|
||||
const optional<ClimateFanMode> &ClimateCall::get_fan_mode() const { return this->fan_mode_; }
|
||||
const optional<ClimateSwingMode> &ClimateCall::get_swing_mode() const { return this->swing_mode_; }
|
||||
const optional<ClimatePreset> &ClimateCall::get_preset() const { return this->preset_; }
|
||||
const char *ClimateCall::get_custom_fan_mode() const { return this->custom_fan_mode_; }
|
||||
const char *ClimateCall::get_custom_preset() const { return this->custom_preset_; }
|
||||
|
||||
optional<std::string> ClimateCall::get_custom_fan_mode() const {
|
||||
if (this->custom_fan_mode_ != nullptr) {
|
||||
|
||||
@@ -110,12 +110,8 @@ class ClimateCall {
|
||||
const optional<ClimateFanMode> &get_fan_mode() const;
|
||||
const optional<ClimateSwingMode> &get_swing_mode() const;
|
||||
const optional<ClimatePreset> &get_preset() const;
|
||||
const char *get_custom_fan_mode() const;
|
||||
const char *get_custom_preset() const;
|
||||
/// @deprecated Use get_custom_fan_mode() (returns const char*) instead (since 2025.11.0)
|
||||
optional<std::string> get_custom_fan_mode_optional() const;
|
||||
/// @deprecated Use get_custom_preset() (returns const char*) instead (since 2025.11.0)
|
||||
optional<std::string> get_custom_preset_optional() const;
|
||||
optional<std::string> get_custom_fan_mode() const;
|
||||
optional<std::string> get_custom_preset() const;
|
||||
|
||||
protected:
|
||||
void validate_();
|
||||
|
||||
Reference in New Issue
Block a user