mopidy-mqtt
mopidy-mqtt copied to clipboard
MQTT Default User and Password
on an initial setup, I was getting an error code 5 on connection attempts. I found that a username of 'username' and password of 'password' was being used. Even though those lines were never on my configuration.
I removed these lines: if self.config['username'] and self.config['password']: self.mqttClient.username_pw_set(self.config['username'], password=self.config['password']) and the necessary edits to setup.py and ext.conf
That got it working for me. It's my assumption that mopidy requires a default value for all configurable variables, I didn't happen to have a username and password on my MQTT server and providing one won't allow it to connect.
Thanks for reporting. Strange. No idea how to fix this. I leave the ticket open though.
I've encountered this issue as well. Wouldn't it be a solution to remove the default values?