Skip to content

Commit

Permalink
fix: targetValue in ColorSwitchCC is not readonly
Browse files Browse the repository at this point in the history
fixes: #1038
  • Loading branch information
AlCalzone committed Oct 13, 2020
1 parent 4e00b37 commit e6fd049
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
-->

## __WORK IN PROGRESS__
### Bugfixes
* The `targetValue` metadata in `Color Switch CC` no longer claims that the value is readonly

### Changes under the hood
* Changed how the transaction creation stack is included in error logs

Expand Down
2 changes: 1 addition & 1 deletion packages/zwave-js/src/lib/commandclass/ColorSwitchCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export class ColorSwitchCC extends CommandClass {
valueDB.setMetadata(
getTargetColorValueID(this.endpointIndex, color),
{
...ValueMetadata.ReadOnlyUInt8,
...ValueMetadata.UInt8,
label: `Target value (${colorName})`,
description: `The target value of the ${colorName} color.`,
},
Expand Down

0 comments on commit e6fd049

Please sign in to comment.