PRP-172 Fix Hue Connect parse errors on newer versions of Groovy

This commit is contained in:
rappleg
2016-06-30 02:42:24 -05:00
parent 90e6dc91eb
commit be7f6a76a9

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) {