Small changes

This commit is contained in:
Mat931
2026-04-30 11:01:30 +02:00
parent dc919e5e84
commit 3b6c5a5aa5
2 changed files with 1 additions and 2 deletions
@@ -11,7 +11,6 @@
#include <spi_flash_mmap.h>
#ifdef USE_OTA_PARTITIONS
#include "esphome/components/watchdog/watchdog.h"
#include <esp_image_format.h>
#include <nvs_flash.h>
#endif
+1 -1
View File
@@ -300,7 +300,7 @@ def perform_ota(
raise OTAError(f"Unsupported OTA type: 0x{ota_type:02X}")
if (
ota_type == OTA_TYPE_UPDATE_PARTITION_TABLE
ota_type != OTA_TYPE_UPDATE_APP
and not features & SERVER_FEATURE_SUPPORTS_PARTITION_ACCESS
):
raise OTAError("Device only supports app updates")