1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Fix custom components

This commit is contained in:
Otto Winter
2019-02-10 14:15:20 +01:00
parent 6a76a3642e
commit 6ccb68aaf1
4 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ def to_code(config):
for i, conf in enumerate(config[CONF_SWITCHES]):
var = Pvariable(conf[CONF_ID], custom.get_switch(i))
add(var.set_name(conf[CONF_NAME]))
switch.register_switch(var, conf)
switch.setup_switch(var, conf)
BUILD_FLAGS = '-DUSE_CUSTOM_SWITCH'