ESPHome  2024.10.2
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
void publish_val(const std::string &val) override
mopeka_std_values val[4]
void publish_state(const std::string &state)
Definition: text_sensor.cpp:9
const char *const TAG
Definition: spi.cpp:8
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7