From 734e4f1b3dd1c226a2e578f4e5bf0a3d18e7e178 Mon Sep 17 00:00:00 2001 From: Jonathan Swoboda Date: Sun, 8 Sep 2024 23:46:41 -0400 Subject: [PATCH] Clang tidy changes + print changes --- esphome/components/acurite/acurite.cpp | 2 +- .../components/acurite/binary_sensor/acurite_binary_sensor.cpp | 2 +- esphome/components/acurite/sensor/acurite_sensor.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/acurite/acurite.cpp b/esphome/components/acurite/acurite.cpp index 363afb2268..4826a37cc1 100644 --- a/esphome/components/acurite/acurite.cpp +++ b/esphome/components/acurite/acurite.cpp @@ -240,7 +240,7 @@ void AcuRiteComponent::decode_iris_(uint8_t *data, uint8_t len) { bool AcuRiteComponent::on_receive(remote_base::RemoteReceiveData data) { uint32_t syncs = 0; uint32_t bits = 0; - uint8_t bytes[10]; + uint8_t bytes[10] = {0}; ESP_LOGV(TAG, "Received raw data with length %d", data.size()); diff --git a/esphome/components/acurite/binary_sensor/acurite_binary_sensor.cpp b/esphome/components/acurite/binary_sensor/acurite_binary_sensor.cpp index 7b1c323ec3..1a0c745c48 100644 --- a/esphome/components/acurite/binary_sensor/acurite_binary_sensor.cpp +++ b/esphome/components/acurite/binary_sensor/acurite_binary_sensor.cpp @@ -13,7 +13,7 @@ void AcuRiteBinarySensor::update_battery(uint8_t value) { } void AcuRiteBinarySensor::dump_config() { - ESP_LOGCONFIG(TAG, "AcuRite Binary Sensor 0x%04x:", this->id_); + ESP_LOGCONFIG(TAG, "AcuRite Binary Sensor: 0x%04x", this->id_); LOG_BINARY_SENSOR(" ", "Battery", this->battery_level_binary_sensor_); } diff --git a/esphome/components/acurite/sensor/acurite_sensor.cpp b/esphome/components/acurite/sensor/acurite_sensor.cpp index d042822f5d..d0de8606aa 100644 --- a/esphome/components/acurite/sensor/acurite_sensor.cpp +++ b/esphome/components/acurite/sensor/acurite_sensor.cpp @@ -112,7 +112,7 @@ void AcuRiteSensor::setup() { } void AcuRiteSensor::dump_config() { - ESP_LOGCONFIG(TAG, "AcuRite Sensor 0x%04x:", this->id_); + ESP_LOGCONFIG(TAG, "AcuRite Sensor: 0x%04x", this->id_); LOG_SENSOR(" ", "Speed", this->speed_sensor_); LOG_SENSOR(" ", "Direction", this->direction_sensor_); LOG_SENSOR(" ", "Temperature", this->temperature_sensor_);