ESPHome  2022.8.0
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
void publish_state(const std::string &state)
Definition: text_sensor.cpp:12
Definition: a4988.cpp:4
uint32_t val
Definition: datatypes.h:85