Skip to content

Commit

Permalink
fix(discovery): revert "improve MQTT discovery for scene CC" (#3583)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer authored Feb 6, 2024
1 parent 4ba9ead commit 16b8c1f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions api/lib/Gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1319,9 +1319,7 @@ export default class Gateway {
} else return
break
case CommandClasses['Central Scene']:
if (!valueId.readable || valueId.writeable) {
return
}
case CommandClasses['Scene Activation']:
cfg = utils.copy(hassCfg.central_scene)

// Combile unique Object id, by using all possible scenarios
Expand All @@ -1330,9 +1328,6 @@ export default class Gateway {
valueId.property,
valueId.propertyKey,
)
if (valueId.type === 'number') {
cfg.discovery_payload.state_class = 'measurement'
}
break
case CommandClasses['Binary Sensor']: {
// https://github.com/zwave-js/node-zwave-js/blob/master/packages/zwave-js/src/lib/commandclass/BinarySensorCC.ts#L41
Expand Down

0 comments on commit 16b8c1f

Please sign in to comment.