diff sat_frontends/jp/cmd_pubsub.py @ 3586:5f65f4e9f8cb

plugin XEP-0060: getItems extra is now serialised dict
author Goffi <goffi@goffi.org>
date Wed, 28 Jul 2021 23:01:15 +0200
parents 04283582966f
children 1709f0a78f50
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_pubsub.py	Wed Jul 28 22:15:31 2021 +0200
+++ b/sat_frontends/jp/cmd_pubsub.py	Wed Jul 28 23:01:15 2021 +0200
@@ -955,7 +955,7 @@
         items = [item] if item else []
         ps_result = data_format.deserialise(
             await self.host.bridge.psItemsGet(
-                service, node, 1, items, "", {}, self.profile
+                service, node, 1, items, "", data_format.serialise({}), self.profile
             )
         )
         item_raw = ps_result["items"][0]
@@ -1687,7 +1687,7 @@
                     self.args.rsm_max,
                     self.args.items,
                     "",
-                    extra,
+                    data_format.serialise(extra),
                     self.profile,
                 )
             )