Skip to content

Commit

Permalink
v0.2.1 (#14)
Browse files Browse the repository at this point in the history
Sending a command to a device over XMPP was not working anymore.
Fixed.
  • Loading branch information
ehendrix23 authored Sep 3, 2019
1 parent 13c2b07 commit 743cea6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion aioharmony/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.2.0'
__version__ = '0.2.1'
7 changes: 4 additions & 3 deletions aioharmony/harmonyclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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,
Expand Down

0 comments on commit 743cea6

Please sign in to comment.