Fix color_mode missing for lights with multiple endpoints. #7220

This commit is contained in:
Koen Kanters 2021-05-04 22:29:23 +02:00
parent 6c6956f1c1
commit a77e857868

View File

@ -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];