comparison sat_frontends/jp/cmd_pubsub.py @ 3757:5bda9d2e8b35

plugin XEP-0060: use serialised options in `psSubscribe` + triggers update
author Goffi <goffi@goffi.org>
date Fri, 13 May 2022 18:29:42 +0200
parents 0eacda79b5d1
children b7cef1b24f83
comparison
equal deleted inserted replaced
3756:aa923e6b369f 3757:5bda9d2e8b35
1469 async def start(self): 1469 async def start(self):
1470 try: 1470 try:
1471 sub_id = await self.host.bridge.psSubscribe( 1471 sub_id = await self.host.bridge.psSubscribe(
1472 self.args.service, 1472 self.args.service,
1473 self.args.node, 1473 self.args.node,
1474 {}, 1474 data_format.serialise(options),
1475 self.profile, 1475 self.profile,
1476 ) 1476 )
1477 except Exception as e: 1477 except Exception as e:
1478 self.disp(_("can't subscribe to node: {e}").format(e=e), error=True) 1478 self.disp(_("can't subscribe to node: {e}").format(e=e), error=True)
1479 self.host.quit(C.EXIT_BRIDGE_ERRBACK) 1479 self.host.quit(C.EXIT_BRIDGE_ERRBACK)