IDmedia / hass-unraid

This Docker container parses and forwards all WebSocket messages from your Unraid server to Home Assistant using the MQTT protocol
111 stars 5 forks source link

MQTT without a username and password #18

Open tonyhardcode opened 1 month ago

tonyhardcode commented 1 month ago

My MQTT container does not have user/pass restrictions and this might be causing issues with hass-unraid.

KeyboardInterrupt Task was destroyed but it is pending! task: <Task pending name='Task-1' coro=<Client._resend_qos_messages() done, defined at /usr/local/lib/python3.9/site-packages/gmqtt/client.py:176> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x14d5fc1e11c0>()]>> Task exception was never retrieved future: <Task finished name='Task-2' coro=<UnRAIDServer.mqtt_connect() done, defined at /app/main.py:141> exception=AttributeError("'NoneType' object has no attribute 'encode'")> Traceback (most recent call last): File "/app/main.py", line 153, in mqtt_connect self.mqtt_client.set_auth_credentials(mqtt_username, mqtt_password) File "/usr/local/lib/python3.9/site-packages/gmqtt/client.py", line 210, in set_auth_credentials self._username = username.encode() AttributeError: 'NoneType' object has no attribute 'encode'

I tried leaving the MQTT username and password empty in the config as well as completely removing them. Still the same issue.

jtmoore81 commented 1 month ago

I am having the same issue. Is it possible to update to remove the username and password requirements.