From 89643eda1ebc32c0565b1b85d876707cf5b29f6d Mon Sep 17 00:00:00 2001 From: zoomix Date: Sat, 5 Jan 2019 21:58:12 +0100 Subject: [PATCH] common/const is a typescript file, not js As of Nov 6, 2018 (#1998) --- docs/frontend_add_card.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/frontend_add_card.md b/docs/frontend_add_card.md index 997dbd64..0c973142 100644 --- a/docs/frontend_add_card.md +++ b/docs/frontend_add_card.md @@ -16,6 +16,6 @@ The different badges are located in the file [`/src/components/entity/ha-state-l Adding a custom card type can be done with a few simple steps. For this example we will add a new state card for the domain `camera`: - 1. Add `'camera'` to the array `DOMAINS_WITH_CARD` 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_CARD` in the file [/common/const.ts](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/common/const.ts). 2. Create the files `state-card-camera.js` in the folder [/state-summary/](https://github.com/home-assistant/home-assistant-polymer/tree/master/src/state-summary). 3. Add `import './state-card-camera.js';` to [state-card-content.js](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/state-summary/state-card-content.js).