Clang tidy changes + print changes

This commit is contained in:
Jonathan Swoboda 2024-09-08 23:46:41 -04:00
parent 8f32714106
commit 734e4f1b3d
3 changed files with 3 additions and 3 deletions

View file

@ -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());

View file

@ -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_);
}

View file

@ -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_);