From da4c4332084bf9b27a8f4028fba9199be21b8193 Mon Sep 17 00:00:00 2001 From: Mat931 <49403702+Mat931@users.noreply.github.com> Date: Thu, 30 Apr 2026 11:06:55 +0200 Subject: [PATCH] Fix --- esphome/espota2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/espota2.py b/esphome/espota2.py index d81ea8454e..ec9cc0f90a 100644 --- a/esphome/espota2.py +++ b/esphome/espota2.py @@ -284,7 +284,7 @@ def perform_ota( else: features = 0 - if ota_type not in (OTA_TYPE_UPDATE_APP): + if ota_type != OTA_TYPE_UPDATE_APP: raise OTAError(f"Unsupported OTA type: 0x{ota_type:02X}") if (