ESPHome
2024.10.2
esphome
esphome
components
climate
climate_traits.cpp
Go to the documentation of this file.
1
#include "
climate_traits.h
"
2
3
namespace
esphome
{
4
namespace
climate {
5
6
int8_t
ClimateTraits::get_target_temperature_accuracy_decimals
()
const
{
7
return
step_to_accuracy_decimals
(this->
visual_target_temperature_step_
);
8
}
9
10
int8_t
ClimateTraits::get_current_temperature_accuracy_decimals
()
const
{
11
return
step_to_accuracy_decimals
(this->
visual_current_temperature_step_
);
12
}
13
14
}
// namespace climate
15
}
// namespace esphome
esphome::climate::ClimateTraits::get_current_temperature_accuracy_decimals
int8_t get_current_temperature_accuracy_decimals() const
Definition:
climate_traits.cpp:10
climate_traits.h
esphome::climate::ClimateTraits::get_target_temperature_accuracy_decimals
int8_t get_target_temperature_accuracy_decimals() const
Definition:
climate_traits.cpp:6
esphome::step_to_accuracy_decimals
int8_t step_to_accuracy_decimals(float step)
Derive accuracy in decimals from an increment step.
Definition:
helpers.cpp:421
esphome::climate::ClimateTraits::visual_current_temperature_step_
float visual_current_temperature_step_
Definition:
climate_traits.h:207
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::climate::ClimateTraits::visual_target_temperature_step_
float visual_target_temperature_step_
Definition:
climate_traits.h:206
Generated by
1.8.13