mirror of
https://github.com/esphome/esphome.git
synced 2025-09-29 16:42:19 +01:00
Fix light partition (#584)
* Fix light partition Fixes https://github.com/esphome/issues/issues/365 * Lint
This commit is contained in:
@@ -33,4 +33,5 @@ def to_code(config):
|
||||
conf[CONF_TO] - conf[CONF_FROM] + 1))
|
||||
|
||||
var = cg.new_Pvariable(config[CONF_OUTPUT_ID], segments)
|
||||
yield cg.register_component(var, config)
|
||||
yield light.register_light(var, config)
|
||||
|
Reference in New Issue
Block a user