print component version
This commit is contained in:
parent
451c184dda
commit
ac8d902c08
@ -8,6 +8,7 @@ namespace esphome {
|
|||||||
namespace truma_inetbox {
|
namespace truma_inetbox {
|
||||||
|
|
||||||
static const char *const TAG = "truma_inetbox.TrumaiNetBoxApp";
|
static const char *const TAG = "truma_inetbox.TrumaiNetBoxApp";
|
||||||
|
static const char *const COMPONENT_VERSION = "TRUMA_COMPONENT_451c184";
|
||||||
|
|
||||||
TrumaiNetBoxApp::TrumaiNetBoxApp() {
|
TrumaiNetBoxApp::TrumaiNetBoxApp() {
|
||||||
this->airconAuto_.set_parent(this);
|
this->airconAuto_.set_parent(this);
|
||||||
@ -18,6 +19,11 @@ TrumaiNetBoxApp::TrumaiNetBoxApp() {
|
|||||||
this->timer_.set_parent(this);
|
this->timer_.set_parent(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TrumaiNetBoxApp::setup() {
|
||||||
|
LinBusProtocol::setup();
|
||||||
|
this->stream_send_test(COMPONENT_VERSION);
|
||||||
|
}
|
||||||
|
|
||||||
void TrumaiNetBoxApp::update() {
|
void TrumaiNetBoxApp::update() {
|
||||||
// Call listeners in after method 'lin_multiframe_recieved' call.
|
// Call listeners in after method 'lin_multiframe_recieved' call.
|
||||||
// Because 'lin_multiframe_recieved' is time critical an all these sensors can take some time.
|
// Because 'lin_multiframe_recieved' is time critical an all these sensors can take some time.
|
||||||
|
|||||||
@ -23,6 +23,7 @@ namespace truma_inetbox {
|
|||||||
class TrumaiNetBoxApp : public LinBusProtocol {
|
class TrumaiNetBoxApp : public LinBusProtocol {
|
||||||
public:
|
public:
|
||||||
TrumaiNetBoxApp();
|
TrumaiNetBoxApp();
|
||||||
|
void setup() override;
|
||||||
void update() override;
|
void update() override;
|
||||||
|
|
||||||
const std::array<u_int8_t, 4> lin_identifier() override;
|
const std::array<u_int8_t, 4> lin_identifier() override;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user