From b4feed3669db6ee9b14ed85e2f6b4b24a2b5440c Mon Sep 17 00:00:00 2001 From: j0ta29 Date: Sun, 18 Feb 2024 15:13:19 +0000 Subject: [PATCH] fix for clang-tidy issues --- esphome/components/optolink/optolink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/optolink/optolink.cpp b/esphome/components/optolink/optolink.cpp index e46ebe9505..c9c8facd29 100644 --- a/esphome/components/optolink/optolink.cpp +++ b/esphome/components/optolink/optolink.cpp @@ -58,7 +58,7 @@ bool Optolink::read_value(IDatapoint *datapoint) { ESP_LOGI(TAG, "requesting value of datapoint %s", datapoint->getName()); if (!VitoWiFi.readDatapoint(*datapoint)) { ESP_LOGE(TAG, "read request rejected due to queue overload - queue size: %d", VitoWiFi.queueSize()); - for (auto dp : datapoint->getCollection()) { + for (auto *dp : IDatapoint::getCollection()) { ESP_LOGD(TAG, "queued datapoint: %s", dp->getName()); } return false; @@ -74,7 +74,7 @@ bool Optolink::write_value(IDatapoint *datapoint, DPValue dp_value) { ESP_LOGI(TAG, "sending value %s of datapoint %s", buffer, datapoint->getName()); if (!VitoWiFi.writeDatapoint(*datapoint, dp_value)) { ESP_LOGE(TAG, "write request rejected due to queue overload - queue size: %d", VitoWiFi.queueSize()); - for (auto dp : datapoint->getCollection()) { + for (auto *dp : IDatapoint::getCollection()) { ESP_LOGE(TAG, "queued dp: %s", dp->getName()); } return false;