mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 07:32:22 +01:00
[mqtt] Fix KeyError when MQTT logging configured without explicit level (#10774)
This commit is contained in:
@@ -212,7 +212,7 @@ def has_mqtt_logging() -> bool:
|
||||
if CONF_TOPIC not in log_topic:
|
||||
return False
|
||||
|
||||
return log_topic[CONF_LEVEL] != "NONE"
|
||||
return log_topic.get(CONF_LEVEL, None) != "NONE"
|
||||
|
||||
|
||||
def has_mqtt() -> bool:
|
||||
|
Reference in New Issue
Block a user