ESPHome 2026.1.0-dev
Loading...
Searching...
No Matches
ld2420_text_sensor.h
Go to the documentation of this file.
1#pragma once
2
3#include "../ld2420.h"
5
6namespace esphome::ld2420 {
7
9 public:
10 void dump_config() override;
12 void on_fw_version(std::string &fw) override {
13 if (this->fw_version_text_sensor_ != nullptr) {
15 }
16 }
17
18 protected:
20};
21
22} // namespace esphome::ld2420
void on_fw_version(std::string &fw) override
void set_fw_version_text_sensor(text_sensor::TextSensor *tsensor)
text_sensor::TextSensor * fw_version_text_sensor_
void publish_state(const std::string &state)