Skip to content

Commit 0b6add3

Browse files
ProtoThisfabaff
authored andcommitted
Fixed 3 typo's in the code (home-assistant#936)
Fixed 3 typo's which prevented the script from working out of the box. - 2nd </script> tag should have been <script> - changed: "name: hello_world" to "name: hello" - changed: "url_path: hello_world" to "url_path: hello" - removed: "webcomponent_path: <config dir>/panels/hello.html"
1 parent 744b7d0 commit 0b6add3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/developers/frontend_creating_custom_panels.markdown

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The `hello.html` contains the needed building blocks to create the elements insi
2727
</template>
2828
</dom-module>
2929

30-
</script>
30+
<script>
3131
Polymer({
3232
is: 'ha-panel-hello',
3333
properties: {
@@ -67,11 +67,10 @@ Create an entry for the new panel in your `configuration.yaml` file:
6767

6868
```yaml
6969
panel_custom:
70-
- name: hello_world
70+
- name: hello
7171
sidebar_title: Hello World
7272
sidebar_icon: mdi:hand-pointing-right
73-
url_path: hello_world
74-
webcomponent_path: <config dir>/panels/hello.html
73+
url_path: hello
7574
```
7675
7776
For more examples, see the [Custom panel Examples](/cookbook#custom-panel-examples) on our examples page.

0 commit comments

Comments
 (0)