Skip to content

Commit cb1161f

Browse files
committed
added conversion to str so mock returns unique-id that doesn't throw json exception
1 parent b70fc0c commit cb1161f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

homeassistant/components/harmony/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def find_unique_id_for_remote(harmony: HarmonyAPI):
1111
"""Find the unique id for both websocket and xmpp clients."""
1212
websocket_unique_id = harmony.hub_config.info.get("activeRemoteId")
1313
if websocket_unique_id is not None:
14-
return websocket_unique_id
14+
return str(websocket_unique_id)
1515

1616
# fallback to the xmpp unique id if websocket is not available
1717
return harmony.config["global"]["timeStampHash"].split(";")[-1]

tests/ignore_uncaught_exceptions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,4 @@
5757
"tests.components.smartthings.test_init",
5858
"test_config_entry_loads_unconnected_cloud",
5959
),
60-
("tests.components.harmony.test_config_flow", "test_form_import"),
61-
("tests.components.harmony.test_config_flow", "test_form_ssdp"),
62-
("tests.components.harmony.test_config_flow", "test_user_form"),
6360
]

0 commit comments

Comments
 (0)