diff --git a/esphome/components/tmp102/tmp102.cpp b/esphome/components/tmp102/tmp102.cpp index c5cef28a31..1b526ed25f 100644 --- a/esphome/components/tmp102/tmp102.cpp +++ b/esphome/components/tmp102/tmp102.cpp @@ -15,13 +15,11 @@ static const uint8_t TMP102_REGISTER_HIGH_LIMIT = 0x03; static const float TMP102_CONVERSION_FACTOR = 0.0625; -void TMP102Component::setup() { ESP_LOGCONFIG(TAG, "Running setup"); } - void TMP102Component::dump_config() { ESP_LOGCONFIG(TAG, "TMP102:"); LOG_I2C_DEVICE(this); if (this->is_failed()) { - ESP_LOGE(TAG, "Communication with TMP102 failed!"); + ESP_LOGE(TAG, "Communication failed"); } LOG_UPDATE_INTERVAL(this); LOG_SENSOR(" ", "Temperature", this); diff --git a/esphome/components/tmp102/tmp102.h b/esphome/components/tmp102/tmp102.h index 1bbb2d5ae3..657b48c7cf 100644 --- a/esphome/components/tmp102/tmp102.h +++ b/esphome/components/tmp102/tmp102.h @@ -9,10 +9,7 @@ namespace tmp102 { class TMP102Component : public PollingComponent, public i2c::I2CDevice, public sensor::Sensor { public: - /// Setup (reset) the sensor and check connection. - void setup() override; void dump_config() override; - /// Update the sensor values (temperature) void update() override; float get_setup_priority() const override;