From 4694142c1b74848af06f214a65fbdb06e48f4d09 Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Fri, 17 Jan 2020 22:23:45 +0100 Subject: [PATCH] hue light dropdown (fix #88, fix #87) --- nodes/hue-device.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodes/hue-device.html b/nodes/hue-device.html index a8d2017..07405ae 100644 --- a/nodes/hue-device.html +++ b/nodes/hue-device.html @@ -22,11 +22,13 @@ return this.name ? 'node_label_italic' : ''; }, oneditprepare() { + const dev = this.device; function getDevices() { $.getJSON('zigbee-shepherd/hue?id=' + $('#node-input-shepherd').val(), data => { + $('#node-input-device').html(''); Object.keys(data).forEach(index => { const device = data[index]; - $('#node-input-device').append(``); + $('#node-input-device').append(``); }); }); }