Skip to content

Commit

Permalink
Fixes211224 (#246)
Browse files Browse the repository at this point in the history
* dep updates

* Discovery fixes

* README.md
  • Loading branch information
Apollon77 authored Dec 21, 2024
1 parent 6562bc7 commit 51237c2
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 69 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ TBD
-->

## Changelog

### __WORK IN PROGRESS__
* (@Apollon77) Fixes several discovery issues

### 0.3.1 (2024-12-20)
* (@Apollon77) Fixes bridge/device icon display in UI
* (@Apollon77) Prevents displaying warning dialogs when nothing is wrong
Expand Down
118 changes: 59 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
"url": "https://github.com/ioBroker/ioBroker.matter"
},
"optionalDependencies": {
"@matter/nodejs-ble": "0.12.0-alpha.0-20241220-2c53108aa"
"@matter/nodejs-ble": "0.12.0-alpha.0-20241220-755393a73"
},
"dependencies": {
"@iobroker/adapter-core": "^3.2.3",
"@iobroker/i18n": "^0.3.1",
"@iobroker/dm-utils": "^0.6.11",
"@iobroker/type-detector": "^4.1.1",
"@matter/main": "0.12.0-alpha.0-20241220-2c53108aa",
"@matter/nodejs": "0.12.0-alpha.0-20241220-2c53108aa",
"@project-chip/matter.js": "0.12.0-alpha.0-20241220-2c53108aa",
"@matter/main": "0.12.0-alpha.0-20241220-755393a73",
"@matter/nodejs": "0.12.0-alpha.0-20241220-755393a73",
"@project-chip/matter.js": "0.12.0-alpha.0-20241220-755393a73",
"axios": "^1.7.9",
"jsonwebtoken": "^9.0.2"
},
Expand Down
4 changes: 2 additions & 2 deletions src-admin/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src-admin/src/Tabs/Controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -909,16 +909,16 @@ class Controller extends Component<ComponentProps, ComponentState> {
this.setState({ discovered: [] }, async () => {
const result: {
error?: string;
result: CommissionableDevice[];
result?: CommissionableDevice[];
} = await this.props.socket.sendTo(
`matter.${this.props.instance}`,
'controllerDiscovery',
{},
);

if (result.error) {
window.alert(`Cannot discover: ${result.error}`);
} else {
window.alert(`Error on discovery: ${result.error}`);
} else if (result.result) {
this.setState({
discovered: result.result,
discoveryDone: true,
Expand Down
2 changes: 1 addition & 1 deletion src/matter/ControllerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ class Controller implements GeneralNode {
.catch(error => this.#adapter.log.info(`Error setting state: ${error}`));
this.#discovering = false;
if (obj.callback) {
this.#adapter.sendTo(obj.from, obj.command, result, obj.callback);
this.#adapter.sendTo(obj.from, obj.command, { result }, obj.callback);
}
}
})
Expand Down

0 comments on commit 51237c2

Please sign in to comment.