mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Merge branch 'climate_stl_overhead' into integration
This commit is contained in:
		| @@ -368,7 +368,7 @@ void Climate::save_state_() { | |||||||
|     const auto &supported = traits.get_supported_custom_fan_modes(); |     const auto &supported = traits.get_supported_custom_fan_modes(); | ||||||
|     std::vector<std::string> vec{supported.begin(), supported.end()}; |     std::vector<std::string> vec{supported.begin(), supported.end()}; | ||||||
|     for (size_t i = 0; i < vec.size(); i++) { |     for (size_t i = 0; i < vec.size(); i++) { | ||||||
|       if (vec[i] == custom_fan_mode.value()) { |       if (vec[i] == custom_fan_mode) { | ||||||
|         state.custom_fan_mode = i; |         state.custom_fan_mode = i; | ||||||
|         break; |         break; | ||||||
|       } |       } | ||||||
| @@ -383,7 +383,7 @@ void Climate::save_state_() { | |||||||
|     const auto &supported = traits.get_supported_custom_presets(); |     const auto &supported = traits.get_supported_custom_presets(); | ||||||
|     std::vector<std::string> vec{supported.begin(), supported.end()}; |     std::vector<std::string> vec{supported.begin(), supported.end()}; | ||||||
|     for (size_t i = 0; i < vec.size(); i++) { |     for (size_t i = 0; i < vec.size(); i++) { | ||||||
|       if (vec[i] == custom_preset.value()) { |       if (vec[i] == custom_preset) { | ||||||
|         state.custom_preset = i; |         state.custom_preset = i; | ||||||
|         break; |         break; | ||||||
|       } |       } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user