Skip to content

Commit

Permalink
Added edit of devices
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Oct 23, 2023
1 parent 7336b39 commit db82166
Show file tree
Hide file tree
Showing 2 changed files with 426 additions and 140 deletions.
4 changes: 2 additions & 2 deletions src-admin/src/Tabs/Bridges.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class Bridges extends React.Component {
if (!this.state.editDeviceDialog) {
return null;
}
const isCommissioned = !!this.props.commissioning[this.props.matter[this.state.editDeviceDialog.bridgeIndex]];
const isCommissioned = !!this.props.commissioning[this.props.matter.bridges[this.state.editDeviceDialog.bridgeIndex].uuid];

const save = () => {
const matter = JSON.parse(JSON.stringify(this.props.matter));
Expand Down Expand Up @@ -734,8 +734,8 @@ class Bridges extends React.Component {
device: devIndex,
noComposed: !!device.noComposed,
originalNoComposed: !!device.noComposed,
originalDimmerOnLevel: parseFloat(device.dimmerOnLevel || 0) || 0,
dimmerOnLevel: parseFloat(device.dimmerOnLevel || 0) || 0,
originalDimmerOnLevel: parseFloat(device.dimmerOnLevel || 0) || 0,
dimmerUseLastLevelForOn: !!device.dimmerUseLastLevelForOn,
originalDimmerUseLastLevelForOn: !!device.dimmerUseLastLevelForOn,
hasOnState: !!device.hasOnState,
Expand Down
Loading

0 comments on commit db82166

Please sign in to comment.