diff --git a/esphome/components/ota/ota_backend_esp_idf.cpp b/esphome/components/ota/ota_backend_esp_idf.cpp index 4f9c90f006b..5843a010f3a 100644 --- a/esphome/components/ota/ota_backend_esp_idf.cpp +++ b/esphome/components/ota/ota_backend_esp_idf.cpp @@ -11,7 +11,6 @@ #include #ifdef USE_OTA_PARTITIONS -#include "esphome/components/watchdog/watchdog.h" #include #include #endif diff --git a/esphome/espota2.py b/esphome/espota2.py index 891ed5b29ca..578ea92ce66 100644 --- a/esphome/espota2.py +++ b/esphome/espota2.py @@ -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")