Fix text sensor MQTT settings (#495)

Fixes https://github.com/esphome/issues/issues/170
This commit is contained in:
Otto Winter 2019-03-31 11:04:57 +02:00
parent e7e785fd60
commit 41db8a1264
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -46,7 +46,7 @@ def setup_text_sensor_core_(text_sensor_var, config):
trigger = Pvariable(conf[CONF_TRIGGER_ID], rhs)
automation.build_automations(trigger, [(std_string, 'x')], conf)
setup_mqtt_component(text_sensor_var.get_mqtt(), config)
setup_mqtt_component(text_sensor_var.Pget_mqtt(), config)
def setup_text_sensor(text_sensor_obj, config):