[pre-commit.ci lite] apply automatic fixes

This commit is contained in:
pre-commit-ci-lite[bot]
2026-04-26 15:41:16 +00:00
committed by GitHub
parent e1fbb6ac5a
commit ef42230412
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:
@@ -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;
}