Skip to content

Commit

Permalink
Fixes bug #59. Error in MQTT user name field extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
TD22057 committed Mar 30, 2018
1 parent 46b4e1e commit d680a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions insteon_mqtt/cmd_line/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def send(config, topic, payload, quiet=False):
client = mqtt.Client(userdata=session)

# Add user/password if the config file has them set.
if config["mqtt"].get("user", None):
user = config["mqtt"]["user"]
if config["mqtt"].get("username", None):
user = config["mqtt"]["username"]
password = config["mqtt"].get("password", None)
client.username_pw_set(user, password)

Expand Down

0 comments on commit d680a16

Please sign in to comment.