Update index.rst (#2738)

This commit is contained in:
H. Árkosi Róbert 2023-03-11 12:25:36 +01:00 committed by GitHub
parent 8605fd5a3d
commit 4131c3f656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -39,12 +39,19 @@ This :ref:`Condition <config-condition>` checks if time has been set and is vali
.. code-block:: yaml
# Example configuration
on_...:
if:
condition:
time.has_time:
then:
- logger.log: Time has been set and is valid!
# Example lambda
lambda: |-
if (id(my_time).now().is_valid()) {
//do something here
}
.. _time-on_time: