From a77e8578688a394a3bd34fd179b983f42204a219 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Tue, 4 May 2021 22:29:23 +0200 Subject: [PATCH] Fix color_mode missing for lights with multiple endpoints. #7220 --- lib/extension/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extension/publish.js b/lib/extension/publish.js index 59f6834e..d286a15f 100644 --- a/lib/extension/publish.js +++ b/lib/extension/publish.js @@ -229,7 +229,7 @@ class EntityPublish extends Extension { const msg = result.state; if (endpointName) { - for (const key of ['state', 'brightness', 'color', 'color_temp']) { + for (const key of ['state', 'brightness', 'color', 'color_temp', 'color_mode']) { if (msg.hasOwnProperty(key)) { msg[`${key}_${endpointName}`] = msg[key]; delete msg[key];