From c27337b8b0791436f6e913cc3b24fd02e840b432 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 18:48:59 -0500 Subject: [PATCH] cleanups --- components/ratgdo/__init__.py | 2 +- components/ratgdo/cover/__init__.py | 1 - components/ratgdo/light/__init__.py | 10 +--------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/components/ratgdo/__init__.py b/components/ratgdo/__init__.py index 3ddc120..915572e 100644 --- a/components/ratgdo/__init__.py +++ b/components/ratgdo/__init__.py @@ -1,7 +1,7 @@ import esphome.codegen as cg import esphome.config_validation as cv from esphome.const import CONF_ID -from esphome import pins, automation +from esphome import pins from esphome.components import uart DEPENDENCIES = ["preferences", "uart"] diff --git a/components/ratgdo/cover/__init__.py b/components/ratgdo/cover/__init__.py index f00a188..a8141d3 100644 --- a/components/ratgdo/cover/__init__.py +++ b/components/ratgdo/cover/__init__.py @@ -5,7 +5,6 @@ import esphome.config_validation as cv from esphome.components import cover from .. import ( ratgdo_ns, - RATGDO, register_ratgdo_child, RATGDO_CLIENT_SCHMEA ) diff --git a/components/ratgdo/light/__init__.py b/components/ratgdo/light/__init__.py index c47a410..b371a67 100644 --- a/components/ratgdo/light/__init__.py +++ b/components/ratgdo/light/__init__.py @@ -1,19 +1,11 @@ import esphome.codegen as cg -from esphome.const import CONF_ID import esphome.config_validation as cv from esphome.const import ( - CONF_DURATION, - CONF_CONSTANT_BRIGHTNESS, - CONF_OUTPUT_ID, - CONF_COLD_WHITE_COLOR_TEMPERATURE, - CONF_WARM_WHITE_COLOR_TEMPERATURE, - CONF_REVERSED, - CONF_MIN_BRIGHTNESS, # New in 2023.5 + CONF_OUTPUT_ID, # New in 2023.5 ) from esphome.components import light from .. import ( ratgdo_ns, - RATGDO, register_ratgdo_child, RATGDO_CLIENT_SCHMEA )