Kyle Gordon
fdab7fcec5
Clarify ignorecase ( #12485 )
...
Clarify the use of ignorecase and the need for Python style True/False
2020-03-22 21:42:59 +01:00
akasma74
fc44b3a2c3
add note on is_state_attr ( #12169 )
...
* add note on is_state_attr
Added a note about is_state_attr when attribute's value is None.
Based on https://community.home-assistant.io/t/can-someone-please-explain/128041 and https://community.home-assistant.io/t/is-state-attr-with-none-argument-to-test/173723
* ✏️ Tweak
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-02-27 13:36:43 +01:00
Alok Saboo
aa7a018464
Change i.e. and e.g. to i.e.,, and e.g., ( #12162 )
...
* Change i.e. and e.g. to i.e.,, and e.g.,
* Update textlintrc.json
* Update .textlintrc.json
Co-Authored-By: Franck Nijhof <frenck@frenck.nl>
* added i.e.,
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-02-22 20:50:26 +01:00
akasma74
813f484b9c
time section: tweaks ( #12077 )
...
Added empty string before notes and enclosed the example in {%raw%}{%endraw%}
2020-02-14 08:22:06 +01:00
Franck Nijhof
6ead12efbc
Extends textlint Terminology list; part 5 ( #12072 )
...
* Extends textlint Terminology list; part 5
* Remove walkthrough from textlint
* Improve Default Configuration page links
2020-02-13 13:39:06 +01:00
Franck Nijhof
6c292ca062
Extends textlint Terminology list ( #12065 )
2020-02-12 14:56:50 +01:00
akasma74
b7be161bbe
Time section: wording clarified, urls updated ( #11979 )
...
* Time section: wording clarified, urls updated
There were some uncetrtanties/errors.
Urls updated to point to the latest python docs
* Update source/_docs/configuration/templating.markdown
Co-Authored-By: Franck Nijhof <frenck@frenck.nl>
* wording changed
* note rephrased/moved
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2020-02-11 19:57:57 +01:00
Ville Skyttä
4567163c1f
Grammar and spelling fixes ( #11455 )
2019-12-14 18:16:50 +01:00
Tobias Perschon
7ef42bf1fc
clarification of round modes ( #11257 )
2019-11-22 19:45:42 +01:00
mogsub
15b748cbda
typo error ( #11177 )
2019-11-15 16:36:00 +01:00
Bas Nijholt
46aeeb0165
small syntax style fix ( #11165 )
2019-11-14 14:58:59 +01:00
SteveDinn
eca6eea498
Help for to_json and from_json template filters ( #10952 )
2019-10-22 22:55:03 -07:00
akasma74
bb642159c1
time: relative_time function - description added ( #10847 )
...
It seems like the function itself has been there for a while but no mention of it in HA docs.
2019-10-20 13:29:07 +02:00
Ketil Moland Olsen
e9e904705c
Updated Jinja URLs ( #10892 )
2019-10-20 09:20:10 +02:00
Paul Sinclair
e446bebc63
📚 Update URL's with sensor in docs folder ( #10559 )
...
* 📚 Update URL's with sensor in docs folder
* 🔨 Fix typo in link
2019-10-02 21:38:18 +02:00
Franck Nijhof
dcc7c10ce4
Rewrites all URLs in our website from components -> integrations
2019-10-02 00:35:28 +02:00
Dubh Ad
17d7e09f84
Fixing errors ( #10267 )
...
There's a couple of examples where `.state` should be appended, but isn't
2019-09-01 18:12:09 +02:00
Tomi Lehto
e21de0f104
Add documentation for arcus trigonometry functions ( #9982 )
2019-08-13 01:08:15 +02:00
Paulus Schoutsen
9c0308b489
Merge branch 'current' into next
2019-07-31 16:26:37 -07:00
gjbadros
5b67050231
Corrected an example ( #10005 )
...
This example is trying to draw a distinction but has two identical lines. I suspect this came from a search and replace to switch to the newer states('') notation.
2019-07-29 20:10:24 +02:00
aschamberger
5d9270c795
adding docs for ord() template filter ( #9962 )
...
* adding docs for https://github.com/home-assistant/home-assistant/pull/25398
* ✏️ Tweak
2019-07-26 14:13:23 +02:00
Franck Nijhof
059d4f3537
Removes absolete code from Markdown files ( #9902 )
2019-07-19 01:15:19 +02:00
Paulus Schoutsen
fddf4241f2
Merge remote-tracking branch 'origin/current' into rc
2019-07-16 15:28:06 -07:00
Franck Nijhof
c464056402
Making our website faster, cleaner and prettier ( #9853 )
...
* 🔥 Removes octopress.js
* 🔥 Removes use of root_url var
* 🔥 Removes Octopress generator reference from feed
* 🔥 Removes delicious support
* 🔥 Removes support for Pinboard
* 🔥 Removes support for Disqus
* 🔥 Removes support for Google Plus
* ↩️ Migrate custom after_footer to default template
* ↩️ Migrate custom footer to default template
* ↩️ Migrate custom header to default template
* 🔥 Removes unused template files
* 🚀 Places time to read directly in post template
* 🚀 Removes unneeded capture from archive_post.html template
* 🔥 🚀 Removes unused, but heaving sorting call in component page
* 🚀 Merged javascripts into a single file
* 🔥 Removes more uses of root_url
* 🚀 Removal of unneeded captures from head
* 🔥 🚀 Removal of expensive liquid HTML compressor
* 🔥 Removes unneeded templates
* 🚀 Replaces kramdown with GitHub's CommonMark 🚀
* 💄 Adds Prism code syntax highlighting
* ✨ Adds support for redirect in Netlify
* ↩️ 🔥 Let Netlify handle all developer doc redirects
* ✏️ Fixes typo in redirects file: Netify -> Netlify
* 🔥 Removes unused .themes folder
* 🔥 Removes unused aside.html template
* 🔥 Removes Disqus config leftover
* 🔥 Removes rouge highlighter config
* 🔥 Removes Octopress 🎉
* 💄 Adjust code block font size and adds soft wraps
* 💄 Adds styling for inline code blocks
* 💄 Improve styling of note/warning/info boxes + div support
* 🔨 Rewrites all note/warning/info boxes
2019-07-15 22:17:54 +02:00
Franck Nijhof
1833c32a2c
Cleans up front matter ( #9835 )
...
* Sets front matter defaults
* Removes default front matter from section templates/pages
* Removes default front matter from addon pages
* Removes default front matter from integration pages
* Removes default front matter from posts
* Removes default front matter from docs pages
* Removes default front matter from other pages
* Fixes blog category pages
2019-07-11 14:35:08 -07:00
Franck Nijhof
368c941f7e
Merge branch 'current' into next
2019-07-05 12:31:20 +02:00
Franck Nijhof
ebca3218c7
🔥 Removes linkable_title everywhere ( #9772 )
...
* Automatically create linkable headers
* Visually improve position of linkable header chain icon
* Do not auto link headers on homepage
* Remove linkable_title everywhere
* 🚑 Re-instante linkable_title plugin as NOOP
2019-07-04 19:08:27 +02:00
Franck Nijhof
337b210cce
Rewrites states.xxx -> states('xxx') (and similar) ( #9736 )
...
* Rewrites states.xxx -> states('xxx') (and similar)
* Adds template escaping on some places
2019-06-30 11:45:03 -07:00
Franck Nijhof
af37b002c6
Merge branch 'current' into next
2019-06-30 19:27:35 +02:00
akasma74
04ea9a1ebf
notes on using states(xxx) vs states.xxx ( #9687 )
...
* notes on using states(xxx) vs states.xxx
as per this discussion - https://community.home-assistant.io/t/using-better-templates-with-state/122912/14
* ✏️ Moved content to warning message.
* ✏️ Tweak
2019-06-28 22:16:17 +02:00
Penny Wood
4e9d88c40d
Documentation for template expand ( #9394 )
...
* Documentation for template expand
* ✏️ Tweak
2019-06-22 19:44:03 +02:00
Franck Nijhof
1e46c4fcbe
Component(s) -> Integration(s) ( #9656 )
...
Signed-off-by: Franck Nijhof <frenck@addons.community>
2019-06-19 15:12:14 +02:00
akasma74
f6fc30974c
Clarification of Templates using now() ( #9111 )
...
* Clarification of Templates using now()
The current content of that section is hard to understand and there is no example.
Hope the link to some examples will help.
* Minor changes
2019-04-03 17:15:55 -04:00
Brad Dixon
2085bd6343
Doc: Add as_timestamp as a Jinja filter. ( #8905 )
2019-03-11 13:21:43 +05:30
Ian Slinger
696831a242
Reorganise and fix some errors in the Templating docs.
...
There was some confusion about the use of filters in the HA extension,
in fact some of them were wrong.
Also merged the examples for the extensions into sections for each type so
they could be seen in context.
2018-11-04 19:00:39 +11:00
DubhAd
b6d9b8ba5b
Clarity updates ( #6889 )
...
Added note about testing templates in the template tool
Added section about how `|` has priority over non-bracket operators
Some minor changes to steer people towards `states.('...')` rather than `states...state`.
2018-10-17 23:17:03 +02:00
Caswell1000
3cb46731b5
Update templating.markdown ( #6871 )
2018-10-16 23:22:52 +02:00
Blake Blackshear
f970507132
Add docs for bitwise filters ( #6352 )
...
* Add docs for bitwise filters
* Escape pipe
2018-09-27 17:03:39 -04:00
DubhAd
c43b581ad9
Added some details ( #6072 )
...
Making it a little clearer that `40` is a numeric, also making it clearer that it's an *entity attribute* that's being checked
2018-08-24 17:38:58 +02:00
DubhAd
ea30a52a78
Making the warning clearer, and linkable ( #5994 )
...
Making the warning clearer (I'll add something similar to the template trigger docs), and putting a title in so that we can link to it.
2018-08-11 22:34:02 +02:00
Fabian Affolter
fac9257908
Update style
2018-08-11 14:28:32 +02:00
DubhAd
dba8e963ea
Merge pull request #5121 from hokus15/patch-3
...
The distance is in fact measured in kilometers not meters
2018-05-12 18:50:29 +01:00
Paulus Schoutsen
e9aad88641
Fix broken templating
2018-05-06 08:54:51 -04:00
Benedict Aas
ce53c0e9f0
Add more math functions to templates ( #5186 )
...
Document usage of `sin`, `cos`, `tan`, and `sqrt`, and the `e`, `pi`,
and `tau` constants.
2018-04-15 18:52:21 +02:00
Jordi
874f7fb54f
The distance is in fact measured in kilometers not meters
2018-04-05 22:54:58 +02:00
mountainsandcode
4a1255889f
Update templating.markdown ( #5085 )
2018-04-04 20:53:54 +02:00
Paulus Schoutsen
ee19913448
Merge branch 'rc' into next
2018-03-30 15:18:39 -07:00
Marco Bakera
069a9f570e
Fixed minor typo in the description of 'max'. ( #5043 )
...
* Fixed minor typo in the description of 'max'.
* Update link
2018-03-29 09:05:59 +02:00
Mikael Svensson
88c8cc2ff1
Template function state_attr to get attribute from a state ( #4981 )
...
* Adds docs for https://github.com/home-assistant/home-assistant/pull/13378
* 🚑 Fixes build error
2018-03-28 00:04:48 -07:00
Alok Saboo
1aca7b08cf
Misc fixes: e.g. -> e.g., and proper case for Home Assistant ( #4942 )
...
* e.g. to e.g., and proper case for Home Assistant
* Instructions how to -> Instructions on how to
2018-03-17 20:20:37 +01:00