ESPHome 2025.5.0
Loading...
Searching...
No Matches
text_sensor.h
Go to the documentation of this file.
1#pragma once
2
3#include "../ld2420.h"
5
6namespace esphome {
7namespace 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 on_fw_version(std::string &fw) override
Definition text_sensor.h:13
void set_fw_version_text_sensor(text_sensor::TextSensor *tsensor)
Definition text_sensor.h:12
text_sensor::TextSensor * fw_version_text_sensor_
Definition text_sensor.h:20
void publish_state(const std::string &state)
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7