From 95428b4cfebb23876dc379d23ebdb98c7b145da8 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 8 May 2019 11:40:45 +0200 Subject: [PATCH] Lint --- esphome/components/custom/output/__init__.py | 4 ++-- esphome/components/custom/sensor/__init__.py | 2 +- esphome/components/custom/switch/__init__.py | 7 +++---- esphome/components/custom/text_sensor/__init__.py | 6 +++--- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/esphome/components/custom/output/__init__.py b/esphome/components/custom/output/__init__.py index 3266cbda98..cc4391d4ae 100644 --- a/esphome/components/custom/output/__init__.py +++ b/esphome/components/custom/output/__init__.py @@ -1,6 +1,6 @@ -from esphome.components import output -import esphome.config_validation as cv import esphome.codegen as cg +import esphome.config_validation as cv +from esphome.components import output from esphome.const import CONF_ID, CONF_LAMBDA, CONF_OUTPUTS, CONF_TYPE from .. import custom_ns diff --git a/esphome/components/custom/sensor/__init__.py b/esphome/components/custom/sensor/__init__.py index 726a65f9cb..622d347d8a 100644 --- a/esphome/components/custom/sensor/__init__.py +++ b/esphome/components/custom/sensor/__init__.py @@ -1,7 +1,7 @@ import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import sensor -from esphome.const import CONF_ID, CONF_LAMBDA, CONF_NAME, CONF_SENSORS +from esphome.const import CONF_ID, CONF_LAMBDA, CONF_SENSORS from .. import custom_ns CustomSensorConstructor = custom_ns.class_('CustomSensorConstructor') diff --git a/esphome/components/custom/switch/__init__.py b/esphome/components/custom/switch/__init__.py index 6fcb5d6678..dc5cb325bd 100644 --- a/esphome/components/custom/switch/__init__.py +++ b/esphome/components/custom/switch/__init__.py @@ -1,10 +1,9 @@ -from esphome.components import switch -import esphome.config_validation as cv import esphome.codegen as cg -from esphome.const import CONF_ID, CONF_LAMBDA, CONF_NAME, CONF_SWITCHES +import esphome.config_validation as cv +from esphome.components import switch +from esphome.const import CONF_ID, CONF_LAMBDA, CONF_SWITCHES from .. import custom_ns - CustomSwitchConstructor = custom_ns.class_('CustomSwitchConstructor') CONFIG_SCHEMA = cv.Schema({ diff --git a/esphome/components/custom/text_sensor/__init__.py b/esphome/components/custom/text_sensor/__init__.py index 42bcff04bb..38675da142 100644 --- a/esphome/components/custom/text_sensor/__init__.py +++ b/esphome/components/custom/text_sensor/__init__.py @@ -1,7 +1,7 @@ -from esphome.components import text_sensor -import esphome.config_validation as cv import esphome.codegen as cg -from esphome.const import CONF_ID, CONF_LAMBDA, CONF_NAME, CONF_TEXT_SENSORS +import esphome.config_validation as cv +from esphome.components import text_sensor +from esphome.const import CONF_ID, CONF_LAMBDA, CONF_TEXT_SENSORS from .. import custom_ns CustomTextSensorConstructor = custom_ns.class_('CustomTextSensorConstructor')