ESPHome
2025.12.1
Loading...
Searching...
No Matches
esphome
components
micronova
text_sensor
micronova_text_sensor.cpp
Go to the documentation of this file.
1
#include "
micronova_text_sensor.h
"
2
3
namespace
esphome::micronova
{
4
5
void
MicroNovaTextSensor::process_value_from_stove
(
int
value_from_stove) {
6
if
(value_from_stove == -1) {
7
this->
publish_state
(
"unknown"
);
8
return
;
9
}
10
11
this->
publish_state
(STOVE_STATES[value_from_stove]);
12
}
13
14
}
// namespace esphome::micronova
esphome::micronova::MicroNovaTextSensor::process_value_from_stove
void process_value_from_stove(int value_from_stove) override
Definition
micronova_text_sensor.cpp:5
esphome::text_sensor::TextSensor::publish_state
void publish_state(const std::string &state)
Definition
text_sensor.cpp:27
micronova_text_sensor.h
esphome::micronova
Definition
micronova_button.cpp:3
Generated by
1.12.0