mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 02:48:31 -07:00
Fix color_mode missing for lights with multiple endpoints. #7220
This commit is contained in:
parent
6c6956f1c1
commit
a77e857868
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user