ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
version_text_sensor.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace esphome::version {
7
9 public:
10 // User provided, not "= default": `new(p) VersionTextSensor()` would zero-fill .bss that is already zero.
12 void set_hide_hash(bool hide_hash) { this->hide_hash_ = hide_hash; }
13 void set_hide_timestamp(bool hide_timestamp) { this->hide_timestamp_ = hide_timestamp; }
14 void setup() override;
15 void dump_config() override;
16
17 protected:
18 bool hide_hash_{false}; // Must match the setter check in text_sensor.py
19 bool hide_timestamp_{false}; // Must match the setter check in text_sensor.py
20};
21
22} // namespace esphome::version
void set_hide_timestamp(bool hide_timestamp)