mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-19 08:28:46 +00:00
One more update for JsonArray detection.
This commit is contained in:
@@ -153,7 +153,7 @@ public class HarmonyHome implements Home {
|
|||||||
}
|
}
|
||||||
} else if(anItem.getType().trim().equalsIgnoreCase(DeviceMapTypes.HARMONY_BUTTON[DeviceMapTypes.typeIndex])) {
|
} else if(anItem.getType().trim().equalsIgnoreCase(DeviceMapTypes.HARMONY_BUTTON[DeviceMapTypes.typeIndex])) {
|
||||||
String url = null;
|
String url = null;
|
||||||
if(anItem.getItem().isJsonObject()) {
|
if(anItem.getItem().isJsonObject() || anItem.getItem().isJsonArray()) {
|
||||||
url = aGsonHandler.toJson(anItem.getItem());
|
url = aGsonHandler.toJson(anItem.getItem());
|
||||||
} else
|
} else
|
||||||
url = anItem.getItem().getAsString();
|
url = anItem.getItem().getAsString();
|
||||||
|
|||||||
Reference in New Issue
Block a user