From e8a7378144f3c70503cc91b498459bc8ec9cde25 Mon Sep 17 00:00:00 2001 From: zoomix Date: Sat, 5 Jan 2019 22:00:28 +0100 Subject: [PATCH] common/const is a typescript file, not js As of Nov 6, 2018 (#1998) --- docs/frontend_add_more_info.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/frontend_add_more_info.md b/docs/frontend_add_more_info.md index 71306f64..bfe1c89f 100644 --- a/docs/frontend_add_more_info.md +++ b/docs/frontend_add_more_info.md @@ -11,6 +11,6 @@ Whenever the user taps or clicks on one of the cards, a more info dialog will sh The instructions to add a more info dialog are very similar to adding a new card type. This example will add a new more info component for the domain `camera`: - 1. Add `'camera'` to the array `DOMAINS_WITH_MORE_INFO` in the file [/common/const.js](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/common/const.js). + 1. Add `'camera'` to the array `DOMAINS_WITH_MORE_INFO` in the file [/common/const.ts](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/common/const.ts). 2. Create the files `more-info-camera.js` in the folder [/dialogs/more-info/controls](https://github.com/home-assistant/home-assistant-polymer/tree/master/src/dialogs/more-info/controls). 3. Add `import './more-info-camera.js';` to [/dialogs/more-info/controls/more-info-content.js](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/dialogs/more-info/controls/more-info-content.js)