7 static const char *
const TAG =
"resistance";
10 LOG_SENSOR(
"",
"Resistance Sensor",
this);
12 ESP_LOGCONFIG(TAG,
" Resistor: %.2fΩ", this->
resistor_);
16 if (std::isnan(value)) {
39 ESP_LOGD(TAG,
"'%s' - Resistance %.1fΩ", this->
name_.
c_str(), res);
void publish_state(float state)
Publish a new state to the front-end.
ResistanceConfiguration configuration_
constexpr const char * c_str() const
void dump_config() override
Implementation of SPI Controller mode.
void process_(float value)