From 195cb77e834d1eb5a71afd59394233cea5fd5d0c Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 20 Jul 2021 08:22:56 +1200 Subject: [PATCH] Add initial_value to template number (#1314) --- components/number/template.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/number/template.rst b/components/number/template.rst index 7c4b4d846..ac6ec9a20 100644 --- a/components/number/template.rst +++ b/components/number/template.rst @@ -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 `.