1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 15:18:16 +00:00

Last pass for now

This commit is contained in:
Jordan Zucker 2025-02-13 14:21:42 -08:00
parent 252fa2424f
commit 06a32e26de

View File

@ -885,7 +885,9 @@ void PrometheusHandler::climate_row_(AsyncResponseStream *stream, climate::Clima
// Now see if position is supported // Now see if position is supported
if (obj->get_traits().get_supports_current_temperature()) { if (obj->get_traits().get_supports_current_temperature()) {
std::string current_temp = "current_temperature"; std::string current_temp = "current_temperature";
climate_mode_row_(stream, obj, area, node, friendly_name, current_temp, obj->current_temperature) int8_t current_accuracy = traits.get_current_temperature_accuracy_decimals();
climate_mode_row_(stream, obj, area, node, friendly_name, current_temp,
value_accuracy_to_string(obj->current_temperature, current_accuracy))
} }
} }
#endif #endif