Update aioharmony to include support for XMPP connectivity to Hub (#36485)

* Update aioharmony to 0.2.3

* Update aioharmony to 0.2.4
This commit is contained in:
ehendrix23 authored and GitHub committed 2020-06-08 09:55:05 -05:00
1 parent af4fb03230
commit 7a2820ded9
4 files changed
+6 -7

No files matched your search

@@ -2,7 +2,7 @@
"domain": "harmony",
"name": "Logitech Harmony Hub",
"documentation": "https://www.home-assistant.io/integrations/harmony",
"requirements": ["aioharmony==0.1.13"],
"requirements": ["aioharmony==0.2.4"],
"codeowners": ["@ehendrix23", "@bramkragten", "@bdraco"],
"ssdp": [
{
+3 -4
View File
@@ -9,11 +9,10 @@ from .const import DOMAIN
def find_unique_id_for_remote(harmony: HarmonyAPI):
"""Find the unique id for both websocket and xmpp clients."""
websocket_unique_id = harmony.hub_config.info.get("activeRemoteId")
if websocket_unique_id is not None:
return str(websocket_unique_id)
if harmony.hub_id is not None:
return str(harmony.hub_id)
# fallback to the xmpp unique id if websocket is not available
# fallback timeStampHash if Hub ID is not available
return harmony.config["global"]["timeStampHash"].split(";")[-1]