mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
[version] Inline the trivial VersionTextSensor setters
This commit is contained in:
@@ -48,8 +48,6 @@ void VersionTextSensor::setup() {
|
||||
version_str[sizeof(version_str) - 1] = '\0';
|
||||
this->publish_state(version_str);
|
||||
}
|
||||
void VersionTextSensor::set_hide_hash(bool hide_hash) { this->hide_hash_ = hide_hash; }
|
||||
void VersionTextSensor::set_hide_timestamp(bool hide_timestamp) { this->hide_timestamp_ = hide_timestamp; }
|
||||
void VersionTextSensor::dump_config() { LOG_TEXT_SENSOR("", "Version Text Sensor", this); }
|
||||
|
||||
} // namespace esphome::version
|
||||
|
||||
@@ -7,8 +7,8 @@ namespace esphome::version {
|
||||
|
||||
class VersionTextSensor final : public text_sensor::TextSensor, public Component {
|
||||
public:
|
||||
void set_hide_hash(bool hide_hash);
|
||||
void set_hide_timestamp(bool hide_timestamp);
|
||||
void set_hide_hash(bool hide_hash) { this->hide_hash_ = hide_hash; }
|
||||
void set_hide_timestamp(bool hide_timestamp) { this->hide_timestamp_ = hide_timestamp; }
|
||||
void setup() override;
|
||||
void dump_config() override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user