From 7c7f6e2bcd0ac8af2cfa9050dbbd129ab94b5bae Mon Sep 17 00:00:00 2001 From: Omar Ishtiaq <5267065+agilityhawk@users.noreply.github.com> Date: Sat, 8 Jun 2024 13:21:41 +0530 Subject: [PATCH] Update adding-state-card.md to fix .js extensions to .ts fixing a 404 (#2202) --- docs/frontend/extending/adding-state-card.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/frontend/extending/adding-state-card.md b/docs/frontend/extending/adding-state-card.md index a694c8df..96190c2b 100644 --- a/docs/frontend/extending/adding-state-card.md +++ b/docs/frontend/extending/adding-state-card.md @@ -17,5 +17,5 @@ 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.ts](https://github.com/home-assistant/frontend/blob/dev/src/common/const.ts). - 2. Create the files `state-card-camera.js` in the folder [/state-summary/](https://github.com/home-assistant/frontend/tree/dev/src/state-summary). - 3. Add `import './state-card-camera.js';` to [state-card-content.js](https://github.com/home-assistant/frontend/blob/dev/src/state-summary/state-card-content.js). + 2. Create the files `state-card-camera.ts` in the folder [/state-summary/](https://github.com/home-assistant/frontend/tree/dev/src/state-summary). + 3. Add `import './state-card-camera.ts';` to [state-card-content.ts](https://github.com/home-assistant/frontend/blob/dev/src/state-summary/state-card-content.ts).