From 125a27a158fe3e1374084133f4b28ecce64f7dd5 Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Tue, 15 Oct 2024 17:08:11 +0300 Subject: [PATCH] Update esphome/components/lps22/lps22.cpp Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/lps22/lps22.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/esphome/components/lps22/lps22.cpp b/esphome/components/lps22/lps22.cpp index e5615bf6e6..de35d27a72 100644 --- a/esphome/components/lps22/lps22.cpp +++ b/esphome/components/lps22/lps22.cpp @@ -23,7 +23,13 @@ static constexpr float TEMPERATURE_SCALE = 0.01; void LPS22Component::setup() {} -void LPS22Component::dump_config() { LOG_I2C_DEVICE(this); } +void LPS22Component::dump_config() { + ESP_LOGCONFIG(TAG, "LPS22:"); + LOG_SENSOR(" ", "Temperature", this->temperature_sensor_); + LOG_SENSOR(" ", "Pressure", this->pressure_sensor_); + LOG_I2C_DEVICE(this); + LOG_UPDATE_INTERVAL(this); +} void LPS22Component::update() { uint8_t value = 0x00;