ESPHome
2024.11.1
esphome
esphome
components
teleinfo
text_sensor
teleinfo_text_sensor.cpp
Go to the documentation of this file.
1
#include "
esphome/core/log.h
"
2
#include "
teleinfo_text_sensor.h
"
3
namespace
esphome
{
4
namespace
teleinfo {
5
6
static
const
char
*
const
TAG
=
"teleinfo_text_sensor"
;
7
TeleInfoTextSensor::TeleInfoTextSensor
(
const
char
*tag) { this->tag = std::string(tag); }
8
void
TeleInfoTextSensor::publish_val
(
const
std::string &
val
) {
publish_state
(val); }
9
void
TeleInfoTextSensor::dump_config
() { LOG_TEXT_SENSOR(
" "
,
"Teleinfo Text Sensor"
,
this
); }
10
}
// namespace teleinfo
11
}
// namespace esphome
esphome::teleinfo::TeleInfoTextSensor::publish_val
void publish_val(const std::string &val) override
Definition:
teleinfo_text_sensor.cpp:8
val
mopeka_std_values val[4]
Definition:
mopeka_std_check.h:224
esphome::text_sensor::TextSensor::publish_state
void publish_state(const std::string &state)
Definition:
text_sensor.cpp:9
esphome::teleinfo::TeleInfoTextSensor::TeleInfoTextSensor
TeleInfoTextSensor(const char *tag)
Definition:
teleinfo_text_sensor.cpp:7
esphome::spi::TAG
const char *const TAG
Definition:
spi.cpp:8
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
log.h
teleinfo_text_sensor.h
esphome::teleinfo::TeleInfoTextSensor::dump_config
void dump_config() override
Definition:
teleinfo_text_sensor.cpp:9
Generated by
1.8.13