From ef422304127ffa52b6e9a57d7f4cabb3fcbc5d3b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Sun, 26 Apr 2026 15:41:16 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- esphome/__main__.py | 2 +- esphome/components/ota/ota_backend_esp_idf.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/__main__.py b/esphome/__main__.py index 411108e554..c931eb179d 100644 --- a/esphome/__main__.py +++ b/esphome/__main__.py @@ -1080,7 +1080,7 @@ def upload_program( if port_type != PortType.NETWORK and getattr(args, "partition_table", False): raise EsphomeError( - f"The option --partition-table can only be used for Over The Air updates." + "The option --partition-table can only be used for Over The Air updates." ) if port_type == PortType.BOOTSEL: diff --git a/esphome/components/ota/ota_backend_esp_idf.cpp b/esphome/components/ota/ota_backend_esp_idf.cpp index 2118234ae8..85c430cac6 100644 --- a/esphome/components/ota/ota_backend_esp_idf.cpp +++ b/esphome/components/ota/ota_backend_esp_idf.cpp @@ -281,7 +281,7 @@ OTAResponseTypes IDFOTABackend::update_partition_table() { // Found the otadata partition in the new partition table otadata_partition_found = true; otadata_overlap = check_overlap(running_app_offset, running_app_size, new_part->pos.offset, new_part->pos.size); - } else if (new_part->subtype == ESP_PARTITION_SUBTYPE_DATA_NVS && strcmp((char*)new_part->label, "nvs") == 0) { + } else if (new_part->subtype == ESP_PARTITION_SUBTYPE_DATA_NVS && strcmp((char *) new_part->label, "nvs") == 0) { // Found the nvs partition in the new partition table nvs_partition_found = true; }