diff --git a/requirements.txt b/requirements.txt index ed0701b..6f98e63 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ pytz requests -paho-mqtt \ No newline at end of file +paho-mqtt diff --git a/requirements_dev.txt b/requirements_dev.txt index ed0701b..6f98e63 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -1,3 +1,3 @@ pytz requests -paho-mqtt \ No newline at end of file +paho-mqtt diff --git a/yoto_api/YotoAPI.py b/yoto_api/YotoAPI.py index 7f48629..3835134 100644 --- a/yoto_api/YotoAPI.py +++ b/yoto_api/YotoAPI.py @@ -292,7 +292,10 @@ def on_message(client, userdata, message): parts = message.topic.split("/") base, device, topic = parts if topic == "status": - self._parse_status_message(str(message.payload.decode('utf-8')), ) + self._parse_status_message( + str(message.payload.decode("utf-8")), + ) + # mqtt.CallbackAPIVersion.VERSION1, client = mqtt.Client( client_id="DASH" + deviceId,