Skip to content

Commit 807b559

Browse files
committed
Remove image from docs
1 parent a4da0ee commit 807b559

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

blog/2026-04-29-registering-custom-dashboard-strategies.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Registering custom dashboard strategies
66

77
As of Home Assistant 2026.4, you can now register custom dashboard strategies, just as you can with [custom cards](/docs/frontend/custom-ui/custom-card), making them easier to discover and add using the **new dashboard** dialog under the **Community dashboards** section.
88

9-
Before you could do this, but had to send users to create a blank dashboard, edit in YAML mode, and paste in your custom strategy. Now you can register a friendly name, description, documentation, and preview image.
9+
Before you could do this, but had to send users to create a blank dashboard, edit in YAML mode, and paste in your custom strategy. Now you can register a friendly name, description, and documentation.
1010

1111
To register your strategy, call `window.customStrategies.push()` with an object containing the following keys:
1212

@@ -15,7 +15,6 @@ To register your strategy, call `window.customStrategies.push()` with an object
1515
- `name` (`optional`): The friendly name of the strategy.
1616
- `description` (`optional`): A short description of the strategy.
1717
- `documentationURL` (`optional`): A URL to the documentation for the strategy. This is not shown in the strategy UI yet but may in the future.
18-
- `images` (`optional`): A preview image, either a single URL or a light/dark pair.
1918

2019
Example:
2120

@@ -28,10 +27,6 @@ window.customStrategies.push({
2827
name: "My demo dashboard",
2928
description: "A starter dashboard generated from JavaScript.",
3029
documentationURL: "https://example.com/my-demo-dashboard",
31-
images: {
32-
light: "/local/my-demo/preview-light.svg",
33-
dark: "/local/my-demo/preview-dark.svg",
34-
},
3530
});
3631
```
3732

docs/frontend/custom-ui/custom-strategy.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ The object supports the following keys:
3333
| `name` | No | Friendly name shown in the picker. |
3434
| `description` | No | Short text shown below the name. |
3535
| `documentationURL` | No | Link to your documentation. This is not shown in the strategy UI yet. |
36-
| `images` | No | Preview image, either a single URL or a light/dark object. |
3736

38-
Example with preview images:
37+
Example:
3938

4039
```js
4140
window.customStrategies = window.customStrategies || [];
@@ -46,11 +45,6 @@ window.customStrategies.push({
4645
name: "My demo dashboard",
4746
description: "A small starter dashboard generated from JavaScript.",
4847
documentationURL: "https://example.com/my-demo-dashboard",
49-
// images: "/local/my-demo/preview.svg"
50-
images: {
51-
light: "/local/my-demo/preview-light.svg",
52-
dark: "/local/my-demo/preview-dark.svg",
53-
},
5448
});
5549
```
5650

@@ -113,11 +107,6 @@ if (
113107
description: "A small starter dashboard generated from JavaScript.",
114108
documentationURL:
115109
"https://developers.home-assistant.io/docs/frontend/custom-ui/custom-strategy",
116-
// images: "/local/my-demo/preview.svg" // single image
117-
images: {
118-
light: "/local/my-demo/preview-light.svg",
119-
dark: "/local/my-demo/preview-dark.svg",
120-
},
121110
});
122111
}
123112
```

0 commit comments

Comments
 (0)