From 34ec611a073287fde9d2d5a438e2bcadbd8ad99d Mon Sep 17 00:00:00 2001 From: imbeacon Date: Fri, 1 Mar 2024 12:49:20 +0200 Subject: [PATCH] Fix for RPC --- setup.py | 2 +- tb_gateway_mqtt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c4d82b2..32d500c 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ with open(path.join(this_directory, 'README.md')) as f: long_description = f.read() -VERSION = "1.8.3" +VERSION = "1.8.4" setup( version=VERSION, diff --git a/tb_gateway_mqtt.py b/tb_gateway_mqtt.py index 8ce71b5..2816585 100644 --- a/tb_gateway_mqtt.py +++ b/tb_gateway_mqtt.py @@ -198,7 +198,7 @@ def gw_send_rpc_reply(self, device, req_id, resp, quality_of_service=None): if quality_of_service not in (0, 1): log.error("Quality of service (qos) value must be 0 or 1") return None - info = self._publish_data({device: {"id": req_id, "data": resp}}, GATEWAY_RPC_RESPONSE_TOPIC, + info = self._publish_data({"device": device, "id": req_id, "data": resp}, GATEWAY_RPC_TOPIC, quality_of_service) return info