mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
parent
be21aa786d
commit
a169d37557
1 changed files with 2 additions and 2 deletions
|
@ -22,6 +22,7 @@ LightState = light_ns.class_('LightState', Nameable, Component)
|
|||
MakeLight = Application.struct('MakeLight')
|
||||
LightOutput = light_ns.class_('LightOutput')
|
||||
FastLEDLightOutputComponent = light_ns.class_('FastLEDLightOutputComponent', LightOutput)
|
||||
FastLEDLightOutputComponentRef = FastLEDLightOutputComponent.operator('ref')
|
||||
|
||||
# Actions
|
||||
ToggleAction = light_ns.class_('ToggleAction', Action)
|
||||
|
@ -246,8 +247,7 @@ def build_effect(full_config):
|
|||
add(effect.set_intensity(config[CONF_INTENSITY]))
|
||||
yield effect
|
||||
elif key == CONF_FASTLED_LAMBDA:
|
||||
lambda_ = None
|
||||
args = [(RawExpression('FastLEDLightOutputComponent &'), 'it')]
|
||||
args = [(FastLEDLightOutputComponentRef, 'it')]
|
||||
for lambda_ in process_lambda(config[CONF_LAMBDA], args):
|
||||
yield None
|
||||
yield FastLEDLambdaLightEffect.new(config[CONF_NAME], lambda_, config[CONF_UPDATE_INTERVAL])
|
||||
|
|
Loading…
Reference in a new issue