mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 01:02:19 +01:00
Fix custom components
This commit is contained in:
@@ -29,7 +29,7 @@ def to_code(config):
|
||||
for i, conf in enumerate(config[CONF_BINARY_SENSORS]):
|
||||
var = Pvariable(conf[CONF_ID], custom.get_binary_sensor(i))
|
||||
add(var.set_name(conf[CONF_NAME]))
|
||||
binary_sensor.register_binary_sensor(var, conf)
|
||||
binary_sensor.setup_binary_sensor(var, conf)
|
||||
|
||||
|
||||
BUILD_FLAGS = '-DUSE_CUSTOM_BINARY_SENSOR'
|
||||
|
Reference in New Issue
Block a user