Merge pull request #1023 from rappleg/FixHueConnectParseErrorsGrailsUpgradeProduction

PRP-172 Fix Hue Connect parse errors on newer versions of Groovy
This commit is contained in:
Vinay Rao
2016-06-30 00:46:24 -07:00
committed by GitHub

View File

@@ -689,7 +689,7 @@ def parse(childDevice, description) {
log.warn "Parsing Body failed - trying again..." log.warn "Parsing Body failed - trying again..."
poll() poll()
} }
if (body instanceof java.util.HashMap) { if (body instanceof java.util.HashMap || body instanceof groovy.json.internal.LazyMap) {
//poll response //poll response
def bulbs = getChildDevices() def bulbs = getChildDevices()
for (bulb in body) { for (bulb in body) {