documentation for version sensor hide timestamp option (#640)

This commit is contained in:
Wauter 2020-07-11 22:32:46 +02:00 committed by GitHub
parent 4bda00b023
commit d71c2e7db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,26 @@ Configuration variables:
------------------------
- **name** (**Required**, string): The name of the text sensor.
- **hide_timestamp** (*Optional*, boolean): Allows you to hide the compilation timestamp from the version string. Defaults to ``False``.
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation.
- All other options from :ref:`Text Sensor <config-text_sensor>`.
Disabling the compilation timestamp:
------------------------------------
.. code-block:: yaml
# Example configuration entry
text_sensor:
- platform: version
name: "ESPHome Version"
hide_timestamp: True
This will, for example, change the output of the senser from:
``1.15.0-dev (Jun 8 2020, 18:53:16)`` to ``1.15.0-dev``
See Also
--------