Skip to content

Commit

Permalink
Revert "fix(discovery): improve MQTT discovery for scene CC (zwave-js…
Browse files Browse the repository at this point in the history
…#3539)"

This reverts commit 383ad83.
  • Loading branch information
ccutrer authored Feb 5, 2024
1 parent 4ba9ead commit 7fe1e14
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 7fe1e14

Please sign in to comment.