Skip to content

Commit

Permalink
Fix script crash when mqtt user and passwword is set
Browse files Browse the repository at this point in the history
  • Loading branch information
tatar-adrian committed Feb 2, 2023
1 parent 4012baf commit feddfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waveshare_ups.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def Main():
print("MQTT: Username is valid, but password is None")
print("MQTT: Not using authentication")
else:
Client.username_ps_set(Uname,Pword)
Client.username_pw_set(Uname,Pword)

#Last Will and Testament
Client.will_set(Topic,"{\"Status\": 0}",0,True)
Expand Down

0 comments on commit feddfdd

Please sign in to comment.