From 5d30d43612da98de93cb89085e73a0e67f6d2463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Koek?= Date: Thu, 28 Mar 2024 12:18:32 +0000 Subject: [PATCH] Update ebyte_lora.cpp --- esphome/components/ebyte_lora/ebyte_lora.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/esphome/components/ebyte_lora/ebyte_lora.cpp b/esphome/components/ebyte_lora/ebyte_lora.cpp index 6f57db2414..e24237af09 100644 --- a/esphome/components/ebyte_lora/ebyte_lora.cpp +++ b/esphome/components/ebyte_lora/ebyte_lora.cpp @@ -165,17 +165,7 @@ void EbyteLoraComponent::loop() { } if (data[0] == SWITCH_INFO) { ESP_LOGD(TAG, "GOT INFO ", data.size()); - uint8_t i = 1; - while (i < data.size() - 1) { - for (auto *sensor : this->sensors_) { - if (sensor->get_pin() == data[i]) { - sensor->publish_state(data[i + 1]); - } - } - ESP_LOGD(TAG, "PIN TO SET: %u ", data[i]); - ESP_LOGD(TAG, "VALUE TO SET: %u ", data[i + 1]); - i = +2; - } + ESP_LOGD(TAG, "RSSI: %u % ", (data[data.size() - 1] / 255.0) * 100); } }