From b6e3f41952af794e49c5322649f0ace108c4aa69 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:15:27 +0100 Subject: [PATCH] Fix `name 'CORE' is not defined` --- ESPHome/TX-Ultimate-Easy-ESPHome_core_common.yaml | 1 - components/tx_ultimate_easy/__init__.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_core_common.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_core_common.yaml index 150b46c..6f72818 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_core_common.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_core_common.yaml @@ -101,7 +101,6 @@ globals: type: std::string restore_value: true max_restore_data_length: 3 - # initial_value: "''" logger: level: DEBUG diff --git a/components/tx_ultimate_easy/__init__.py b/components/tx_ultimate_easy/__init__.py index eef1a13..7a7be12 100644 --- a/components/tx_ultimate_easy/__init__.py +++ b/components/tx_ultimate_easy/__init__.py @@ -1,11 +1,11 @@ import esphome.codegen as cg import esphome.config_validation as cv +from esphome import automation from esphome.components import uart from esphome.const import ( CONF_ID, ) - -from esphome import automation +from esphome.core import CORE CODEOWNERS = ["@edwardtfn"] DEPENDENCIES = ['uart']