mirror of
https://github.com/esphome/esphome.git
synced 2026-10-15 02:32:49 +00:00
Merge remote-tracking branch 'origin/climate-custom-modes-test-coverage' into climate-custom-modes-const-vector
This commit is contained in:
@@ -296,6 +296,11 @@ button:
|
||||
id(template_climate_custom_modes).set_supported_custom_presets(presets);
|
||||
id(template_climate_custom_modes).set_supported_custom_presets({"eco_plus"});
|
||||
id(template_climate_custom_modes).set_supported_custom_fan_modes({});
|
||||
std::vector<const char *> new_fan_modes{"turbo", "silent"};
|
||||
id(template_climate_custom_modes).set_supported_custom_fan_modes(new_fan_modes);
|
||||
static const char *const MODES[] = {"turbo", "silent"};
|
||||
id(template_climate_custom_modes).set_supported_custom_fan_modes(MODES);
|
||||
id(template_climate_custom_modes).set_supported_custom_presets(MODES);
|
||||
|
||||
cover:
|
||||
- platform: template
|
||||
|
||||
Reference in New Issue
Block a user