From 6aa67791974ac0bf0f3cbc52717864cf4888ea7d Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 7 Nov 2018 23:32:52 +0100 Subject: [PATCH] Fix --- esphomeyaml/components/binary_sensor/nextion.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esphomeyaml/components/binary_sensor/nextion.py b/esphomeyaml/components/binary_sensor/nextion.py index 903a06278c..981e85dbb0 100644 --- a/esphomeyaml/components/binary_sensor/nextion.py +++ b/esphomeyaml/components/binary_sensor/nextion.py @@ -1,16 +1,16 @@ import voluptuous as vol -import esphomeyaml.config_validation as cv -from esphomeyaml.components import binary_sensor +from esphomeyaml.components import binary_sensor, display from esphomeyaml.components.display.nextion import Nextion +import esphomeyaml.config_validation as cv from esphomeyaml.const import CONF_COMPONENT_ID, CONF_NAME, CONF_PAGE_ID -from esphomeyaml.helpers import get_variable, esphomelib_ns +from esphomeyaml.helpers import get_variable DEPENDENCIES = ['display'] CONF_NEXTION_ID = 'nextion_id' -NextionTouchComponent = esphomelib_ns.NextionTouchComponent +NextionTouchComponent = display.display_ns.NextionTouchComponent PLATFORM_SCHEMA = cv.nameable(binary_sensor.BINARY_SENSOR_PLATFORM_SCHEMA.extend({ cv.GenerateID(): cv.declare_variable_id(NextionTouchComponent),