mirror of
https://github.com/esphome/esphome.git
synced 2025-11-13 13:25:50 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1241af91d | ||
|
|
7ae6777fd6 | ||
|
|
a169d37557 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "esphomeyaml-beta",
|
"name": "esphomeyaml-beta",
|
||||||
"version": "1.9.1",
|
"version": "1.9.2",
|
||||||
"slug": "esphomeyaml-beta",
|
"slug": "esphomeyaml-beta",
|
||||||
"description": "Beta version of esphomeyaml HassIO add-on.",
|
"description": "Beta version of esphomeyaml HassIO add-on.",
|
||||||
"url": "https://beta.esphomelib.com/esphomeyaml/index.html",
|
"url": "https://beta.esphomelib.com/esphomeyaml/index.html",
|
||||||
|
|||||||
@@ -10,8 +10,7 @@ from esphomeyaml.const import CONF_ALPHA, CONF_BLUE, CONF_BRIGHTNESS, CONF_COLOR
|
|||||||
CONF_SPEED, CONF_STATE, CONF_TRANSITION_LENGTH, CONF_UPDATE_INTERVAL, CONF_WHITE, CONF_WIDTH
|
CONF_SPEED, CONF_STATE, CONF_TRANSITION_LENGTH, CONF_UPDATE_INTERVAL, CONF_WHITE, CONF_WIDTH
|
||||||
from esphomeyaml.helpers import Action, Application, ArrayInitializer, Component, Nameable, \
|
from esphomeyaml.helpers import Action, Application, ArrayInitializer, Component, Nameable, \
|
||||||
Pvariable, StructInitializer, TemplateArguments, add, add_job, esphomelib_ns, float_, \
|
Pvariable, StructInitializer, TemplateArguments, add, add_job, esphomelib_ns, float_, \
|
||||||
get_variable, process_lambda, setup_mqtt_component, std_string, templatable, uint32, \
|
get_variable, process_lambda, setup_mqtt_component, std_string, templatable, uint32
|
||||||
RawExpression
|
|
||||||
|
|
||||||
PLATFORM_SCHEMA = cv.PLATFORM_SCHEMA.extend({
|
PLATFORM_SCHEMA = cv.PLATFORM_SCHEMA.extend({
|
||||||
|
|
||||||
@@ -23,6 +22,7 @@ LightState = light_ns.class_('LightState', Nameable, Component)
|
|||||||
MakeLight = Application.struct('MakeLight')
|
MakeLight = Application.struct('MakeLight')
|
||||||
LightOutput = light_ns.class_('LightOutput')
|
LightOutput = light_ns.class_('LightOutput')
|
||||||
FastLEDLightOutputComponent = light_ns.class_('FastLEDLightOutputComponent', LightOutput)
|
FastLEDLightOutputComponent = light_ns.class_('FastLEDLightOutputComponent', LightOutput)
|
||||||
|
FastLEDLightOutputComponentRef = FastLEDLightOutputComponent.operator('ref')
|
||||||
|
|
||||||
# Actions
|
# Actions
|
||||||
ToggleAction = light_ns.class_('ToggleAction', Action)
|
ToggleAction = light_ns.class_('ToggleAction', Action)
|
||||||
@@ -247,8 +247,7 @@ def build_effect(full_config):
|
|||||||
add(effect.set_intensity(config[CONF_INTENSITY]))
|
add(effect.set_intensity(config[CONF_INTENSITY]))
|
||||||
yield effect
|
yield effect
|
||||||
elif key == CONF_FASTLED_LAMBDA:
|
elif key == CONF_FASTLED_LAMBDA:
|
||||||
lambda_ = None
|
args = [(FastLEDLightOutputComponentRef, 'it')]
|
||||||
args = [(RawExpression('FastLEDLightOutputComponent &'), 'it')]
|
|
||||||
for lambda_ in process_lambda(config[CONF_LAMBDA], args):
|
for lambda_ in process_lambda(config[CONF_LAMBDA], args):
|
||||||
yield None
|
yield None
|
||||||
yield FastLEDLambdaLightEffect.new(config[CONF_NAME], lambda_, config[CONF_UPDATE_INTERVAL])
|
yield FastLEDLambdaLightEffect.new(config[CONF_NAME], lambda_, config[CONF_UPDATE_INTERVAL])
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "esphomeyaml",
|
"name": "esphomeyaml",
|
||||||
"version": "1.9.1",
|
"version": "1.9.2",
|
||||||
"slug": "esphomeyaml",
|
"slug": "esphomeyaml",
|
||||||
"description": "esphomeyaml HassIO add-on for intelligently managing all your ESP8266/ESP32 devices.",
|
"description": "esphomeyaml HassIO add-on for intelligently managing all your ESP8266/ESP32 devices.",
|
||||||
"url": "https://esphomelib.com/esphomeyaml/index.html",
|
"url": "https://esphomelib.com/esphomeyaml/index.html",
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
MAJOR_VERSION = 1
|
MAJOR_VERSION = 1
|
||||||
MINOR_VERSION = 9
|
MINOR_VERSION = 9
|
||||||
PATCH_VERSION = '1'
|
PATCH_VERSION = '2'
|
||||||
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION)
|
||||||
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)
|
||||||
ESPHOMELIB_VERSION = '1.9.1'
|
ESPHOMELIB_VERSION = '1.9.2'
|
||||||
|
|
||||||
ESP_PLATFORM_ESP32 = 'ESP32'
|
ESP_PLATFORM_ESP32 = 'ESP32'
|
||||||
ESP_PLATFORM_ESP8266 = 'ESP8266'
|
ESP_PLATFORM_ESP8266 = 'ESP8266'
|
||||||
|
|||||||
Reference in New Issue
Block a user