Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Use getAsString() when setting vendor to discovery result (#4032)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivaylo Ivanov <ivivanov.bg@gmail.com>
  • Loading branch information
ivivanov-bg authored and kaikreuzer committed Aug 11, 2017
1 parent 98c8d19 commit c85096e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -94,7 +94,7 @@ public void onUpdate(String instanceId, JsonObject data) {
Map<String, Object> properties = new HashMap<>(1);
properties.put("id", id);
if (deviceInfo.get(DEVICE_VENDOR) != null) {
properties.put("vendor", deviceInfo.get(DEVICE_VENDOR));
properties.put("vendor", deviceInfo.get(DEVICE_VENDOR).getAsString());
}
logger.debug("Adding device {} to inbox", thingId);
DiscoveryResult discoveryResult = DiscoveryResultBuilder.create(thingId).withBridge(bridge)
Expand Down

0 comments on commit c85096e

Please sign in to comment.