mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Internally all temperature units are Celsius so just send it directly (#1840)
This commit is contained in:
		| @@ -60,6 +60,8 @@ void MQTTClimateComponent::send_discovery(JsonObject &root, mqtt::SendDiscoveryC | |||||||
|   root["max_temp"] = traits.get_visual_max_temperature(); |   root["max_temp"] = traits.get_visual_max_temperature(); | ||||||
|   // temp_step |   // temp_step | ||||||
|   root["temp_step"] = traits.get_visual_temperature_step(); |   root["temp_step"] = traits.get_visual_temperature_step(); | ||||||
|  |   // temperature units are always coerced to Celsius internally | ||||||
|  |   root["temp_unit"] = "C"; | ||||||
|  |  | ||||||
|   if (traits.supports_preset(CLIMATE_PRESET_AWAY)) { |   if (traits.supports_preset(CLIMATE_PRESET_AWAY)) { | ||||||
|     // away_mode_command_topic |     // away_mode_command_topic | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user