mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Add 'bitwise_xor' filter to jinja templates (#30124)
This commit is contained in:
parent
3e4b67150b
commit
918fb8ca8a
@ -916,6 +916,7 @@ The numeric functions and filters raise an error if the input is not a valid num
|
||||
- `round(1, "half", default)` will always round to the nearest .5 value. `precision` should be 1 for this mode
|
||||
- Filter `value_one|bitwise_and(value_two)` perform a bitwise and(&) operation with two values.
|
||||
- Filter `value_one|bitwise_or(value_two)` perform a bitwise or(\|) operation with two values.
|
||||
- Filter `value_one|bitwise_xor(value_two)` perform a bitwise xor(\^) operation with two values.
|
||||
- Filter `ord` will return for a string of length one an integer representing the Unicode code point of the character when the argument is a Unicode object, or the value of the byte when the argument is an 8-bit string.
|
||||
|
||||
### Complex type checking
|
||||
|
Loading…
x
Reference in New Issue
Block a user