Add initial_value to template number (#1314)

This commit is contained in:
Jesse Hills 2021-07-20 08:22:56 +12:00
parent 9887bc52ec
commit 195cb77e83
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -34,7 +34,9 @@ Configuration variables:
number. Defaults to ``60s``.
- **optimistic** (*Optional*, boolean): Whether to operate in optimistic mode - when in this mode,
any command sent to the template number will immediately update the reported state.
Defaults to ``false``.
Defaults to ``false``. Cannot be used with ``lambda``.
- **initial_value** (*Optional*, float): The value to use if no ``lambda`` is used or no value
stored in RTC/flash at setup time.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
- All other options from :ref:`Sensor <config-number>`.