Skip to content

Commit

Permalink
Fixes empicano#88
Browse files Browse the repository at this point in the history
password is optional
  • Loading branch information
ge-lem committed Nov 17, 2021
1 parent 5d8a0f1 commit 4ccf8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncio_mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def __init__(
logger = MQTT_LOGGER
self._client.enable_logger(logger)

if username is not None and password is not None:
if username is not None:
self._client.username_pw_set(username=username, password=password)

if tls_context is not None:
Expand Down

0 comments on commit 4ccf8af

Please sign in to comment.