mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 11:44:13 +01:00
e41ea42074
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
22 lines
515 B
C++
22 lines
515 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/text_sensor/text_sensor.h"
|
|
|
|
namespace esphome {
|
|
namespace version {
|
|
|
|
class VersionTextSensor : public text_sensor::TextSensor, public Component {
|
|
public:
|
|
void set_hide_timestamp(bool hide_timestamp);
|
|
void setup() override;
|
|
void dump_config() override;
|
|
float get_setup_priority() const override;
|
|
std::string unique_id() override;
|
|
|
|
protected:
|
|
bool hide_timestamp_{false};
|
|
};
|
|
|
|
} // namespace version
|
|
} // namespace esphome
|