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; }