Conversation
|
|
||
| Any errors on teaching will be reported in the logs. If you enable [system_log](https://www.home-assistant.io/components/system_log/) events: | ||
|
|
||
| {% raw %} |
There was a problem hiding this comment.
Only templates require the raw tags.
There was a problem hiding this comment.
Could you please expand on that a bit more? When to use, when not etc.
This is pretty unclear in the 'documentation documentation' in my opinion.
e.g.
Configuration
The Configuration Variables section must use the {% raw %}{% configuration %} ... {% endconfiguration %}{% endraw %} tag.
The '... tag', I see multiple tags? Should we use both those tags or is it in this case just poorly rendered and do we only use the {% configuration %}-tag?
Embedding Code
You can use the default markdown syntax to generate syntax highlighted code. For inline code wrap your code in {% raw %}`{% endraw %}.
Are those {% raw %}-tags something we should include? Is this again a case of bad rendering and does the documentation actually just mean to use ` for inline code?
There was a problem hiding this comment.
@tjorim my reading of it is that only the contents of the yaml (i.e. configuration) files should be enclosed in the raw, so my example service data should NOT be enclosed. Is this correct @MartinHjelmare ?
There was a problem hiding this comment.
We don't want jekyll to try to process the curly braces in jinja templates. So we use the raw tag to temporarily disable tag processing. Read more here eg:
http://ozzieliu.com/2016/04/26/writing-liquid-template-in-markdown-with-jekyll/
So to answer the question, only literal yaml that contains templates, ie curly braces, needs to be contained within raw tags. But of course there are other cases where we need to disable tag processing. Trying to list that is out of scope for this review.
|
Merged a little too quickly.. there was a spelling error. |
| fire_event: true | ||
| ``` | ||
|
|
||
| you can create an automation to receive notifications on Facebox errors: |
|
Furthermore, this is not related to a parent PR, so it targets an incorrect branch. It should have been the |
|
No it is related to a parent PR. It was just not linked. |
|
@MartinHjelmare In that case, it should have been linked before merging. Could @robmarkcole or you add the link please? |
* Add info on teaching automations * tidy raw tags
|
This was a follow up of #5789. |
|
Thanks, @MartinHjelmare! 👍 Parent PR: home-assistant/core#15439 |
Description:
Add info on teaching automations, since the teaching events were removed
Checklist:
current. New documentation for platforms/components and features should go tonext.