mirror of
https://github.com/esphome/esphome.git
synced 2026-02-22 01:15:35 -07:00
These are no longer used in Home Assistant. This will be a breaking change for MQTT for the sensors that defined custom unique ids.
22 lines
479 B
C++
22 lines
479 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;
|
|
|
|
protected:
|
|
bool hide_timestamp_{false};
|
|
};
|
|
|
|
} // namespace version
|
|
} // namespace esphome
|