From a959d384b77485d2abec1cdf6b895c30b63cbb78 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 18 Jul 2017 17:51:51 +0200 Subject: [PATCH] Update name --- source/developers/frontend_creating_custom_ui.markdown | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/developers/frontend_creating_custom_ui.markdown b/source/developers/frontend_creating_custom_ui.markdown index a7816cbd52..5b05e8a168 100644 --- a/source/developers/frontend_creating_custom_ui.markdown +++ b/source/developers/frontend_creating_custom_ui.markdown @@ -11,17 +11,17 @@ ha_release: 0.38 --- If you would like to use your own [State card](/developers/frontend_add_card/) without merging your code into [home-assistant-polymer](https://github.com/home-assistant/home-assistant-polymer/) you can create your own implementation. -- Put the element source file and its dependencies in `www/custom_ui/` directory under your homeassistant config directory. +Put the element source file and its dependencies in `www/custom_ui/` directory under your Home Assistant [configuration](/docs/configuration/) directory. For example if creating a state card for the `light` domain named `my_custom_light_card` put `state-card-my_custom_light_card.html` in `www/custom_ui/`. That file should implement `` tag with Polymer. -In `state-card-my_custom_light_card.html` you should use `` to import all the dependencies **not** used by Homeassistant UI. -Do not import any dependencies used by Homeassistant UI. +In `state-card-my_custom_light_card.html` you should use `` to import all the dependencies **not** used by Home Assistant's UI. +Do not import any dependencies used by the Home Assistant UI. Importing those will work in `development: 1` mode, but will fail in production mode. -- In the `customize:` section of `configuration.yaml` put `custom_ui_state_card: `. +In the `customize:` section of the `configuration.yaml` file put `custom_ui_state_card: `. For example: ```yaml @@ -31,5 +31,4 @@ homeassistant: custom_ui_state_card: my_custom_light_card ``` - For more possibilities, see the [Custom UI section](/cookbook/#user-interface) on our Examples page.