diff --git a/README.md b/README.md index 3b36aec..926688b 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Pings specified IP addresses in a defined interval and monitors the results. **This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0. ## Ping from javascript adapter -You can ping any IP address from the javascript adapter with command: +You can ping any IP address from the JavaScript adapter with command: ``` sendTo('ping.0', 'ping', '192.168.1.1', (res) => { console.log('Result: ' + JSON.stringify(res)); // Result: {"result": {"host": "192.168.1.1", "alive": true, "ms": 250}} diff --git a/package.json b/package.json index 033c452..f1b6e8a 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@alcalzone/release-script-plugin-license": "^3.7.0", "@alcalzone/release-script-plugin-manual-review": "^3.7.0", "@iobroker/adapter-dev": "^1.3.0", - "@iobroker/testing": "^4.1.3", + "@iobroker/legacy-testing": "^1.0.12", "axios": "^1.7.4", "mocha": "^10.7.3", "chai": "^4.5.0" diff --git a/src-admin/src/PingBrowseComponent.jsx b/src-admin/src/PingBrowseComponent.jsx index 06bdc7d..a3e6666 100644 --- a/src-admin/src/PingBrowseComponent.jsx +++ b/src-admin/src/PingBrowseComponent.jsx @@ -138,7 +138,7 @@ class PingBrowseComponent extends ConfigGeneric { const selectable = this.state.ips.filter(ip => !exists.find(item => item.ip === ip)); const allSelected = selectable.length === this.state.selected.length; - return