CLUSTER vs Cluster

In the following :
const { Cluster} = require(‘zigbee-clusters’);

const { CLUSTER} = require(‘zigbee-clusters’);

Why Cluster and CLUSTER aren’t identical ??

Regards

Cluster is a class, CLUSTER is an object containing constants.

Perhaps not the best choice of naming, but OTOH they are in keeping with common JS conventions.

1 Like

@GD91

This thread has been moved to the Development Category on the forum, if you have any problems with that please feel free to contact me or another moderator.