From 3b6c5a5aa5e68223a895f7d25f12dcb1c431cf81 Mon Sep 17 00:00:00 2001 From: Mat931 <49403702+Mat931@users.noreply.github.com> Date: Thu, 30 Apr 2026 11:01:30 +0200 Subject: [PATCH] Small changes --- esphome/components/ota/ota_backend_esp_idf.cpp | 1 - esphome/espota2.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/esphome/components/ota/ota_backend_esp_idf.cpp b/esphome/components/ota/ota_backend_esp_idf.cpp index 4f9c90f006..5843a010f3 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 891ed5b29c..578ea92ce6 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")