Skip to content

Commit

Permalink
Merge pull request #26 from brentru/update-for-minimqtt-properties
Browse files Browse the repository at this point in the history
Update for minimqtt properties
  • Loading branch information
brentru committed Aug 23, 2019
2 parents 5a7e3bd + 5ac8da2 commit 110aa24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_io/adafruit_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, mqtt_client):
)
# MiniMQTT's username kwarg is optional, IO requires a username
try:
self._user = self._client._user
self._user = self._client.user
except:
raise TypeError(
"Adafruit IO requires a username, please set one in MiniMQTT"
Expand All @@ -86,7 +86,7 @@ def __init__(self, mqtt_client):
self._client.on_message = self._on_message_mqtt
self._logger = False
# Write to the MiniMQTT logger, if avaliable.
if self._client._logger is not None:
if self._client.logger is not None:
self._logger = True
self._client.set_logger_level("DEBUG")
self._connected = False
Expand Down

0 comments on commit 110aa24

Please sign in to comment.