From 743cea64ed4befc4c65495487b7859e238d0d058 Mon Sep 17 00:00:00 2001 From: ehendrix23 Date: Tue, 3 Sep 2019 09:41:09 -0600 Subject: [PATCH] v0.2.1 (#14) Sending a command to a device over XMPP was not working anymore. Fixed. --- README.rst | 3 ++- aioharmony/__version__.py | 2 +- aioharmony/harmonyclient.py | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 3979047..114ba28 100755 --- a/README.rst +++ b/README.rst @@ -127,7 +127,8 @@ Release Notes To do so open the Harmony app and go to: Menu > Harmony Setup > Add/Edit Devices & Activities > Remote & Hub > Enable XMPP Same steps can be followed to disable XMPP again. - Log entries from responsehandler class will now include ip address of HUB for easier identification - +0.2.1 Fixed: + - Fixed issue in sending commands to HUB wbe using XMPP protocol. TODO diff --git a/aioharmony/__version__.py b/aioharmony/__version__.py index 7fd229a..fc79d63 100644 --- a/aioharmony/__version__.py +++ b/aioharmony/__version__.py @@ -1 +1 @@ -__version__ = '0.2.0' +__version__ = '0.2.1' diff --git a/aioharmony/harmonyclient.py b/aioharmony/harmonyclient.py index aa43851..74f23e4 100755 --- a/aioharmony/harmonyclient.py +++ b/aioharmony/harmonyclient.py @@ -726,9 +726,9 @@ async def _send_command(self, "status": "press", "timestamp": '0', "verb": "render", - "action": '{{"command": "{}",' - '"type": "IRCommand",' - '"deviceId": "{}"}}'.format(command.command, + "action": '{{"command":: "{}",' + '"type":: "IRCommand",' + '"deviceId":: "{}"}}'.format(command.command, command.device) } msgid_press = str(uuid4()) @@ -750,6 +750,7 @@ async def _send_command(self, await asyncio.sleep(command.delay) params['status'] = 'release' + msgid_release = str(uuid4()) # Register the handler for this command. self.register_handler(handler=callback_handler,