Update conditions.markdown (#14248)

Seems 'when light' and 'when dark' were mixed up, corrected that.
This commit is contained in:
Marius 2020-08-15 11:21:17 +02:00 committed by GitHub
parent 561f2b8b88
commit 2194975b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,7 +242,7 @@ condition:
after_offset: "-01:00:00"
```
This is 'when light' - equivalent to a state condition on `sun.sun` of `above_horizon`.
This is 'when dark' - equivalent to a state condition on `sun.sun` of `below_horizon`.
```yaml
condition:
@ -251,7 +251,7 @@ condition:
before: sunset
```
This is 'when dark' - equivalent to a state condition on `sun.sun` of `below_horizon`.
This is 'when light' - equivalent to a state condition on `sun.sun` of `above_horizon`.
We cannot use both keys in this case as it will always be `false`.