Fix fan oscillating (#818)

Fixes https://github.com/esphome/issues/issues/783
This commit is contained in:
Otto Winter 2019-10-31 20:31:58 +01:00 committed by GitHub
parent 560251ab2a
commit 80aaf66963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -24,4 +24,4 @@ def to_code(config):
if CONF_OSCILLATION_OUTPUT in config: if CONF_OSCILLATION_OUTPUT in config:
oscillation_output = yield cg.get_variable(config[CONF_OSCILLATION_OUTPUT]) oscillation_output = yield cg.get_variable(config[CONF_OSCILLATION_OUTPUT])
cg.add(var.set_oscillation(oscillation_output)) cg.add(var.set_oscillating(oscillation_output))

View file

@ -29,4 +29,4 @@ def to_code(config):
if CONF_OSCILLATION_OUTPUT in config: if CONF_OSCILLATION_OUTPUT in config:
oscillation_output = yield cg.get_variable(config[CONF_OSCILLATION_OUTPUT]) oscillation_output = yield cg.get_variable(config[CONF_OSCILLATION_OUTPUT])
cg.add(var.set_oscillation(oscillation_output)) cg.add(var.set_oscillating(oscillation_output))