Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbarratt committed Oct 8, 2020
1 parent 467f271 commit 4f790e9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,10 @@ If the trigger was caused by ``@state_trigger``, the prior value of the state va
caused the trigger is available to ``str_expr`` with a ``.old`` suffix.

Inside the ``str_expr``, undefined state variables, undefined state attributes, and undefined
``.old`` variables evaluate to `None`, rather than throwing an exception. Any ``.old`` variable
will be ``None`` if the trigger is not a state trigger or if a different state variable change
cause the state trigger.
``.old`` variables evaluate to ``None``, rather than throwing an exception. Any ``.old`` variable
will be ``None`` if the trigger is not a state trigger, if a different state variable change
caused the state trigger, or if the state variable that caused the trigger was set for the
first time (so there is no prior value).

@time_active
^^^^^^^^^^^^
Expand Down

0 comments on commit 4f790e9

Please sign in to comment.