mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 03:07:14 +00:00
Highlighting that capitals aren't allowed ;) (#8103)
Capitals aren't allowed in script names, but we don't mention that here
This commit is contained in:
parent
8f4dfd7600
commit
c7a2d58c9a
@ -27,8 +27,7 @@ script:
|
|||||||
message: Current temperature is {% raw %}{{ states.sensor.temperature.state }}{% endraw %}
|
message: Current temperature is {% raw %}{{ states.sensor.temperature.state }}{% endraw %}
|
||||||
```
|
```
|
||||||
<p class='note'>
|
<p class='note'>
|
||||||
Script names (e.g., `message_temperature` in the example above) are not allowed to contain dash (minus) characters, i.e. `-`.
|
Script names (e.g., `message_temperature` in the example above) are not allowed to contain capital letters, or dash (minus) characters, i.e. `-`. The preferred way to separate words for better readability is to use underscore (`_`) characters.
|
||||||
The preferred way to separate words for better readability is to use underscore (`_`) characters.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user