mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
Fix
This commit is contained in:
parent
73f790f793
commit
357ab2e5f7
@ -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
|
from esphomeyaml.helpers import App, Application, gpio_output_pin_expression, variable
|
||||||
|
|
||||||
MakeGPIOSwitch = Application.MakeGPIOSwitch
|
MakeGPIOSwitch = Application.MakeGPIOSwitch
|
||||||
GPIOSwitch = Application.GPIOSwitch
|
GPIOSwitch = switch.switch_ns.GPIOSwitch
|
||||||
|
|
||||||
PLATFORM_SCHEMA = cv.nameable(switch.SWITCH_PLATFORM_SCHEMA.extend({
|
PLATFORM_SCHEMA = cv.nameable(switch.SWITCH_PLATFORM_SCHEMA.extend({
|
||||||
cv.GenerateID(): cv.declare_variable_id(GPIOSwitch),
|
cv.GenerateID(): cv.declare_variable_id(GPIOSwitch),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user