From 5d9270c79523ca1fee7672e444e143ab1f040672 Mon Sep 17 00:00:00 2001 From: aschamberger Date: Fri, 26 Jul 2019 14:13:23 +0200 Subject: [PATCH] adding docs for ord() template filter (#9962) * adding docs for https://github.com/home-assistant/home-assistant/pull/25398 * :pencil2: Tweak --- source/_docs/configuration/templating.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_docs/configuration/templating.markdown b/source/_docs/configuration/templating.markdown index 018c7a5bedc..0b9b1b054a1 100644 --- a/source/_docs/configuration/templating.markdown +++ b/source/_docs/configuration/templating.markdown @@ -277,6 +277,7 @@ Some of these functions can also be used in a [filter](http://jinja.pocoo.org/do - Filter `min` will obtain the smallest item in a sequence. - 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 `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. ### Regular expressions