From 0fe3a9b45c274e34ef6b2267d80df15b977d5f62 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Mon, 24 Dec 2018 00:39:58 +0100 Subject: [PATCH] Improve group support. #15 --- lib/extension/groups.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/extension/groups.js b/lib/extension/groups.js index a328a60a6..ac28468b8 100644 --- a/lib/extension/groups.js +++ b/lib/extension/groups.js @@ -11,10 +11,6 @@ class Groups { this.publishDeviceState = publishDeviceState; } - stop() { - this.queue.stop(); - } - onMQTTConnected() { this.mqtt.subscribe(`${settings.get().mqtt.base_topic}/bridge/groups/+/remove`); this.mqtt.subscribe(`${settings.get().mqtt.base_topic}/bridge/groups/+/add`); @@ -62,7 +58,7 @@ class Groups { // Send command to the device. let payload = null; if (topic.type === 'add') { - payload = {groupid: groupID, groupname: topic.friendly_name}; + payload = {groupid: groupID, groupname: ''}; } else if (topic.type === 'remove') { payload = {groupid: groupID}; }