mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 00:07:32 +00:00
[pre-commit.ci lite] apply automatic fixes
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user