From 8a509c65519592c330b6d05270372eb2c7dd7db5 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Wed, 6 Jun 2018 08:35:31 +0200 Subject: [PATCH] Fix MQTT publish --- esphomeyaml/automation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphomeyaml/automation.py b/esphomeyaml/automation.py index f7ffb51ff6..51e7bd94e2 100644 --- a/esphomeyaml/automation.py +++ b/esphomeyaml/automation.py @@ -205,7 +205,7 @@ def build_action(config, arg_type): yield Pvariable(config[CONF_ACTION_ID], rhs, type=type) elif CONF_MQTT_PUBLISH in config: conf = config[CONF_MQTT_PUBLISH] - rhs = App.Pget_mqtt_client().Pmake_publish_action() + rhs = App.Pget_mqtt_client().Pmake_publish_action(template_arg) type = mqtt.MQTTPublishAction.template(template_arg) action = Pvariable(config[CONF_ACTION_ID], rhs, type=type) template_ = None