ESPHome  2024.11.1
text_sensor.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../ld2420.h"
5 
6 namespace esphome {
7 namespace ld2420 {
8 
10  public:
11  void dump_config() override;
13  void on_fw_version(std::string &fw) override {
14  if (this->fw_version_text_sensor_ != nullptr) {
16  }
17  }
18 
19  protected:
21 };
22 
23 } // namespace ld2420
24 } // namespace esphome
void set_fw_version_text_sensor(text_sensor::TextSensor *tsensor)
Definition: text_sensor.h:12
void publish_state(const std::string &state)
Definition: text_sensor.cpp:9
text_sensor::TextSensor * fw_version_text_sensor_
Definition: text_sensor.h:20
void on_fw_version(std::string &fw) override
Definition: text_sensor.h:13
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7