mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 19:06:37 +00:00
[components] Remove redundant setup priority overrides that duplicate default
This commit is contained in:
@@ -32,7 +32,6 @@ void VersionTextSensor::setup() {
|
||||
version_str[sizeof(version_str) - 1] = '\0';
|
||||
this->publish_state(version_str);
|
||||
}
|
||||
float VersionTextSensor::get_setup_priority() const { return setup_priority::DATA; }
|
||||
void VersionTextSensor::set_hide_timestamp(bool hide_timestamp) { this->hide_timestamp_ = hide_timestamp; }
|
||||
void VersionTextSensor::dump_config() { LOG_TEXT_SENSOR("", "Version Text Sensor", this); }
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ class VersionTextSensor : public text_sensor::TextSensor, public Component {
|
||||
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};
|
||||
|
||||
Reference in New Issue
Block a user