From 75d5ba09e786a9f919b20a5aee87d8dc958828ec Mon Sep 17 00:00:00 2001 From: Keith Burzinski Date: Thu, 2 May 2024 04:09:27 -0500 Subject: [PATCH] Fix variable name --- esphome/components/ota/__init__.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/esphome/components/ota/__init__.py b/esphome/components/ota/__init__.py index 5a5c69bd7a..e9e63fbff0 100644 --- a/esphome/components/ota/__init__.py +++ b/esphome/components/ota/__init__.py @@ -17,14 +17,14 @@ CONF_ON_PROGRESS = "on_progress" CONF_ON_STATE_CHANGE = "on_state_change" -ota = cg.esphome_ns.namespace("ota") -OTAComponent = ota.class_("OTAComponent", cg.Component) -OTAState = ota.enum("OTAState") -OTAEndTrigger = ota.class_("OTAEndTrigger", automation.Trigger.template()) -OTAErrorTrigger = ota.class_("OTAErrorTrigger", automation.Trigger.template()) -OTAProgressTrigger = ota.class_("OTAProgressTrigger", automation.Trigger.template()) -OTAStartTrigger = ota.class_("OTAStartTrigger", automation.Trigger.template()) -OTAStateChangeTrigger = ota.class_( +ota_ns = cg.esphome_ns.namespace("ota") +OTAComponent = ota_ns.class_("OTAComponent", cg.Component) +OTAState = ota_ns.enum("OTAState") +OTAEndTrigger = ota_ns.class_("OTAEndTrigger", automation.Trigger.template()) +OTAErrorTrigger = ota_ns.class_("OTAErrorTrigger", automation.Trigger.template()) +OTAProgressTrigger = ota_ns.class_("OTAProgressTrigger", automation.Trigger.template()) +OTAStartTrigger = ota_ns.class_("OTAStartTrigger", automation.Trigger.template()) +OTAStateChangeTrigger = ota_ns.class_( "OTAStateChangeTrigger", automation.Trigger.template() )