ESPHome
2024.11.0
esphome
esphome
components
version
version_text_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/text_sensor/text_sensor.h
"
5
6
namespace
esphome
{
7
namespace
version
{
8
9
class
VersionTextSensor
:
public
text_sensor::TextSensor
,
public
Component
{
10
public
:
11
void
set_hide_timestamp
(
bool
hide_timestamp);
12
void
setup
()
override
;
13
void
dump_config
()
override
;
14
float
get_setup_priority
()
const override
;
15
std::string
unique_id
()
override
;
16
17
protected
:
18
bool
hide_timestamp_
{
false
};
19
};
20
21
}
// namespace version
22
}
// namespace esphome
esphome::shelly_dimmer::version
uint8_t version
Definition:
stm32flash.h:93
esphome::version::VersionTextSensor::hide_timestamp_
bool hide_timestamp_
Definition:
version_text_sensor.h:18
esphome::version::VersionTextSensor::unique_id
std::string unique_id() override
Definition:
version_text_sensor.cpp:20
esphome::Component
Definition:
component.h:68
esphome::version::VersionTextSensor::get_setup_priority
float get_setup_priority() const override
Definition:
version_text_sensor.cpp:18
esphome::version::VersionTextSensor
Definition:
version_text_sensor.h:9
esphome::version::VersionTextSensor::dump_config
void dump_config() override
Definition:
version_text_sensor.cpp:21
esphome::text_sensor::TextSensor
Definition:
text_sensor.h:34
esphome::version::VersionTextSensor::set_hide_timestamp
void set_hide_timestamp(bool hide_timestamp)
Definition:
version_text_sensor.cpp:19
esphome::version::VersionTextSensor::setup
void setup() override
Definition:
version_text_sensor.cpp:11
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
text_sensor.h
Generated by
1.8.13