From 357ab2e5f7c971713104d3be7c3ab8378ebc7cd6 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Fri, 9 Nov 2018 20:00:18 +0100 Subject: [PATCH] Fix --- esphomeyaml/components/switch/gpio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/components/switch/gpio.py b/esphomeyaml/components/switch/gpio.py index f37f5d6858..6ad76e9bd6 100644 --- a/esphomeyaml/components/switch/gpio.py +++ b/esphomeyaml/components/switch/gpio.py @@ -7,7 +7,7 @@ from esphomeyaml.const import CONF_MAKE_ID, CONF_NAME, CONF_PIN from esphomeyaml.helpers import App, Application, gpio_output_pin_expression, variable MakeGPIOSwitch = Application.MakeGPIOSwitch -GPIOSwitch = Application.GPIOSwitch +GPIOSwitch = switch.switch_ns.GPIOSwitch PLATFORM_SCHEMA = cv.nameable(switch.SWITCH_PLATFORM_SCHEMA.extend({ cv.GenerateID(): cv.declare_variable_id(GPIOSwitch),