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

Only include FastLED if user says so

This commit is contained in:
Otto Winter
2018-11-30 12:41:34 +01:00
parent cf2752b9e0
commit 3b1cba7ad1
2 changed files with 4 additions and 0 deletions

View File

@@ -104,6 +104,8 @@ def to_code(config):
BUILD_FLAGS = '-DUSE_FAST_LED_LIGHT' BUILD_FLAGS = '-DUSE_FAST_LED_LIGHT'
LIB_DEPS = 'FastLED@3.2.0'
def to_hass_config(data, config): def to_hass_config(data, config):
return light.core_to_hass_config(data, config, brightness=True, rgb=True, color_temp=False, return light.core_to_hass_config(data, config, brightness=True, rgb=True, color_temp=False,

View File

@@ -84,6 +84,8 @@ def to_code(config):
BUILD_FLAGS = '-DUSE_FAST_LED_LIGHT' BUILD_FLAGS = '-DUSE_FAST_LED_LIGHT'
LIB_DEPS = 'FastLED@3.2.0'
def to_hass_config(data, config): def to_hass_config(data, config):
return light.core_to_hass_config(data, config, brightness=True, rgb=True, color_temp=False, return light.core_to_hass_config(data, config, brightness=True, rgb=True, color_temp=False,