mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
Fix MQTT log topic level (#445)
This commit is contained in:
parent
581dffe2d4
commit
fe66f93a01
1 changed files with 2 additions and 2 deletions
|
@ -163,8 +163,8 @@ def to_code(config):
|
||||||
else:
|
else:
|
||||||
add(mqtt.set_log_message_template(exp_mqtt_message(log_topic)))
|
add(mqtt.set_log_message_template(exp_mqtt_message(log_topic)))
|
||||||
|
|
||||||
if CONF_LEVEL in config:
|
if CONF_LEVEL in log_topic:
|
||||||
add(mqtt.set_log_level(logger.LOG_LEVELS[config[CONF_LEVEL]]))
|
add(mqtt.set_log_level(logger.LOG_LEVELS[log_topic[CONF_LEVEL]]))
|
||||||
|
|
||||||
if CONF_SSL_FINGERPRINTS in config:
|
if CONF_SSL_FINGERPRINTS in config:
|
||||||
for fingerprint in config[CONF_SSL_FINGERPRINTS]:
|
for fingerprint in config[CONF_SSL_FINGERPRINTS]:
|
||||||
|
|
Loading…
Reference in a new issue