Co-authored-by: Andreas Hergert <andreas.hergert@otrs.com> Co-authored-by: Otto Winter <otto@otto-winter.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
21 lines
459 B
C++
21 lines
459 B
C++
#pragma once
|
|
|
|
#include "../pipsolar.h"
|
|
#include "esphome/components/text_sensor/text_sensor.h"
|
|
#include "esphome/core/component.h"
|
|
|
|
namespace esphome {
|
|
namespace pipsolar {
|
|
class Pipsolar;
|
|
class PipsolarTextSensor : public Component, public text_sensor::TextSensor {
|
|
public:
|
|
void set_parent(Pipsolar *parent) { this->parent_ = parent; };
|
|
void dump_config() override;
|
|
|
|
protected:
|
|
Pipsolar *parent_;
|
|
};
|
|
|
|
} // namespace pipsolar
|
|
} // namespace esphome
|