From d03f0bccf0ee1ffd4af24526c7bc870acd387584 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Sat, 25 Apr 2026 14:24:15 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- esphome/components/ota/ota_backend_esp_idf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ota/ota_backend_esp_idf.cpp b/esphome/components/ota/ota_backend_esp_idf.cpp index 7200eb752e..269d9153b2 100644 --- a/esphome/components/ota/ota_backend_esp_idf.cpp +++ b/esphome/components/ota/ota_backend_esp_idf.cpp @@ -227,7 +227,7 @@ OTAResponseTypes IDFOTABackend::update_partition_table() { // esp_partition_table_verify does not fail in this case and the ESP would not boot after the update bool checksum_found = false; for (size_t i = 0; i < ESP_PARTITION_TABLE_MAX_ENTRIES; i++) { - if (((const esp_partition_info_t *)&new_partition_table[i])->magic == ESP_PARTITION_MAGIC_MD5) { + if (((const esp_partition_info_t *) &new_partition_table[i])->magic == ESP_PARTITION_MAGIC_MD5) { checksum_found = true; } }