From b6738414311c97778c5e58061f0989a5f805616b Mon Sep 17 00:00:00 2001 From: Dominic Griesel Date: Fri, 22 Nov 2024 22:35:39 +0100 Subject: [PATCH] docs: remove requirement for error handler --- docs/api/driver.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/driver.md b/docs/api/driver.md index 0d55dbead0ae..054ba83bbb0c 100644 --- a/docs/api/driver.md +++ b/docs/api/driver.md @@ -393,7 +393,7 @@ The `Driver` class inherits from the Node.js [EventEmitter](https://nodejs.org/a | Event | Description | | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `"error"` | Is emitted when the underlying serial port emits an error or invalid data is received. You **must** add a listener for this event, otherwise unhandled `"error"` events will crash your application! | +| `"error"` | Is emitted when the underlying serial port emits an error or invalid data is received. | | `"driver ready"` | Is emitted after the controller interview is completed but before the node interview is started. | | `"all nodes ready"` | Is emitted when all nodes are safe to be used (i.e. the `"ready"` event has been emitted for all nodes). | | `"bootloader ready"` | Is emitted when the controller is in recovery mode (e.g. after a failed firmware upgrade) and the bootloader has been entered. This behavior is opt-in using the `allowBootloaderOnly` flag of the [`ZWaveOptions`](#ZWaveOptions). If it is, the driver instance will only be good for interacting with the bootloader, e.g. for flashing a new image. The `"driver ready"` event will not be emitted and commands attempting to talk to the serial API will fail in this mode. |