From 77f7816114aa4efe5918c93ce8d551288694a5f2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 1 Jul 2025 15:40:18 -0500 Subject: [PATCH 1/2] Update esphome/components/ota/__init__.py --- esphome/components/ota/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/ota/__init__.py b/esphome/components/ota/__init__.py index 8f0f4fbb05..12294c0551 100644 --- a/esphome/components/ota/__init__.py +++ b/esphome/components/ota/__init__.py @@ -11,7 +11,7 @@ from esphome.const import ( from esphome.core import CORE, coroutine_with_priority CODEOWNERS = ["@esphome/core"] -AUTO_LOAD = ["safe_mode", "md5"] +AUTO_LOAD = ["md5", "safe_mode"] IS_PLATFORM_COMPONENT = True From ec9969296334b47ff1685536548622e0c173bec1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 1 Jul 2025 15:40:40 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- esphome/components/ota/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/esphome/components/ota/__init__.py b/esphome/components/ota/__init__.py index 12294c0551..627c55e910 100644 --- a/esphome/components/ota/__init__.py +++ b/esphome/components/ota/__init__.py @@ -25,7 +25,6 @@ CONF_ON_STATE_CHANGE = "on_state_change" ota_ns = cg.esphome_ns.namespace("ota") OTAComponent = ota_ns.class_("OTAComponent", cg.Component) OTAState = ota_ns.enum("OTAState") - OTAAbortTrigger = ota_ns.class_("OTAAbortTrigger", automation.Trigger.template()) OTAEndTrigger = ota_ns.class_("OTAEndTrigger", automation.Trigger.template()) OTAErrorTrigger = ota_ns.class_("OTAErrorTrigger", automation.Trigger.template()) @@ -85,7 +84,6 @@ BASE_OTA_SCHEMA = cv.Schema( async def to_code(config): cg.add_define("USE_OTA") - # Libraries for OTA backends if CORE.is_esp32 and CORE.using_arduino: cg.add_library("Update", None)