mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Fix MQTT publish
This commit is contained in:
parent
d249820bcd
commit
8a509c6551
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ def build_action(config, arg_type):
|
||||||
yield Pvariable(config[CONF_ACTION_ID], rhs, type=type)
|
yield Pvariable(config[CONF_ACTION_ID], rhs, type=type)
|
||||||
elif CONF_MQTT_PUBLISH in config:
|
elif CONF_MQTT_PUBLISH in config:
|
||||||
conf = config[CONF_MQTT_PUBLISH]
|
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)
|
type = mqtt.MQTTPublishAction.template(template_arg)
|
||||||
action = Pvariable(config[CONF_ACTION_ID], rhs, type=type)
|
action = Pvariable(config[CONF_ACTION_ID], rhs, type=type)
|
||||||
template_ = None
|
template_ = None
|
||||||
|
|
Loading…
Reference in a new issue