Skip to content

Commit 5e1c2b5

Browse files
committed
Telemetry must be an array
1 parent eaad9c3 commit 5e1c2b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tb_gateway_mqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def gw_send_attributes(self, device, attributes, quality_of_service=1):
201201
qos=quality_of_service)
202202

203203
def gw_send_telemetry(self, device, telemetry, quality_of_service=1):
204-
if not isinstance(telemetry, list) and not (isinstance(telemetry, dict) and telemetry.get("ts") is not None):
204+
if not isinstance(telemetry, list):
205205
telemetry = [telemetry]
206206

207207
return self._send_device_request(TBSendMethod.PUBLISH,

0 commit comments

Comments
 (0)