Update modbus_controller.rst (#2817)

I think at some time in the past the 'command_throttle' parameter changed from a unit of 'milliseconds' to the unit of 'time'.

If you try to compile with a value of 1000 (supposedly milliseconds), compilation fails with the following error:
```
    Don't know what '1000' means as it has no time *unit*! Did you mean '1000s'?.
    command_throttle: 1000
```
If I put a value of '1s' then compilation works and also this is the time I see that is being used.
This commit is contained in:
victorclaessen 2023-04-12 11:43:11 +02:00 committed by GitHub
parent 0893d25cdf
commit 79e307f96d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ Configuration variables:
- **address** (**Required**, :ref:`config-id`): The modbus address of the device
Specify the modbus device address of the.
- **command_throttle** (*Optional*, int): minimum time in milliseconds between 2 requests to the device. Default is 0ms
- **command_throttle** (*Optional*, :ref:`config-time`): minimum time in between 2 requests to the device. Default is 0ms
Because some modbus devices limit the rate of requests the interval between sending requests to the device can be modified.
- **update_interval** (*Optional*, :ref:`config-time`): The interval that the sensors should be checked.