Public Access
feat: initial prototype
Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
16 files changed
+1843
-8
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#include "text_sensor.h"
|
||||
#include "esphome/core/log.h"
|
||||
|
||||
namespace esphome
|
||||
{
|
||||
namespace nut_ups
|
||||
{
|
||||
|
||||
static const char *const TXT_TAG = "nut_ups.text_sensor";
|
||||
|
||||
void NutUpsTextSensor::dump_config()
|
||||
{
|
||||
ESP_LOGCONFIG(TXT_TAG, "NUT UPS Text Sensor:");
|
||||
ESP_LOGCONFIG(TXT_TAG, " Type: %s", sensor_type_.c_str());
|
||||
LOG_TEXT_SENSOR(" ", "Text Sensor", this);
|
||||
}
|
||||
|
||||
} // namespace nut_ups
|
||||
} // namespace esphome
|
||||
Reference in new issue
Block a user