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:
parent
252fa2424f
commit
06a32e26de
@ -885,7 +885,9 @@ void PrometheusHandler::climate_row_(AsyncResponseStream *stream, climate::Clima
|
||||
// Now see if position is supported
|
||||
if (obj->get_traits().get_supports_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
|
||||
|
Loading…
x
Reference in New Issue
Block a user