From 48cf440c76c0971e15084eb84f3d827e00a91b40 Mon Sep 17 00:00:00 2001 From: tempus2016 Date: Sat, 7 Nov 2026 22:41:08 +0000 Subject: [PATCH 1/2] docs: call HACS the Home Assistant Marketplace Home Assistant 2026.11 built HACS in as the Marketplace. The README badge, install steps and My Home Assistant link, the bug-report install option, the release announcement's upgrade text and CONTRIBUTING now say Marketplace, with a note for installs older than 2026.11. hacs.json and the hacs/action validation keep their names because the Marketplace still uses them. --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/workflows/release-announcement.yml | 4 ++-- CONTRIBUTING.md | 6 +++--- README.md | 15 +++++++++------ 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 52a0555..59def62 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -56,7 +56,7 @@ body: attributes: label: How is the card installed? options: - - HACS + - Home Assistant Marketplace (or HACS) - Manually, as a Lovelace resource - Not sure validations: diff --git a/.github/workflows/release-announcement.yml b/.github/workflows/release-announcement.yml index 158616c..cf538af 100644 --- a/.github/workflows/release-announcement.yml +++ b/.github/workflows/release-announcement.yml @@ -65,8 +65,8 @@ jobs: `### Upgrading`, ``, isPrerelease - ? `This is a pre-release — it may contain bugs. To test it early, open Chartdeck in HACS, choose ⋮ → **Redownload**, turn on **Show beta versions** and pick this version — or install it manually.` - : `Update via **HACS**, or download \`chartdeck-card.js\` from the [latest release](${url}) and copy it to \`/config/www/\`.`, + ? `This is a pre-release — it may contain bugs. To test it early, go to **Settings → Devices & services → Marketplace**, open Chartdeck, enable its **Pre-release** entity and turn the switch on (on HACS, before Home Assistant 2026.11: ⋮ → **Redownload**, **Show beta versions**) — or install it manually.` + : `Update from the **Marketplace** (HACS before Home Assistant 2026.11), or download \`chartdeck-card.js\` from the [latest release](${url}) and copy it to \`/config/www/\`.`, ``, `After updating, **hard-refresh your browser** (Ctrl/Cmd+Shift+R) so the new card module loads instead of a cached one.`, ``, diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 461ca2d..84da3a9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,9 +12,9 @@ npm start # rebuild on change, served on port 5000 for a local Home Assi ``` `npm run build` runs the linter first and stops if it fails, so a green build means lint and -bundle both passed. `dist/chartdeck-card.js` is committed on purpose — HACS installs it -straight from the repository — so a change to `src/` needs the bundle rebuilt in the same -commit. CI fails if it was not. +bundle both passed. `dist/chartdeck-card.js` is committed on purpose — the Marketplace +(HACS) installs it straight from the repository — so a change to `src/` needs the bundle +rebuilt in the same commit. CI fails if it was not. ## Commit messages matter diff --git a/README.md b/README.md index 46a5574..49d1b15 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@

Latest Release - HACS Default + Home Assistant Marketplace License HA Version Downloads @@ -17,7 +17,7 @@

CI - HACS Validation + Marketplace validation CodeQL Commit activity

@@ -89,12 +89,15 @@ This page is the summary. What changed in each version is on the [releases page] ## Installation -Chartdeck is in the HACS default store: +Chartdeck is in the Home Assistant Marketplace: -1. Open HACS and search for *Chartdeck*. -2. Download it, then reload your browser. +1. Go to **Settings → Marketplace** and search for *Chartdeck*. +2. Choose **Install**, then reload your browser. -[![Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=tempus2016&repository=chartdeck&category=lovelace) +[![Open your Home Assistant instance and show Chartdeck in the Marketplace.](https://my.home-assistant.io/badges/marketplace_repository.svg)](https://my.home-assistant.io/redirect/marketplace_repository/?owner=tempus2016&repository=chartdeck) + +On Home Assistant older than 2026.11, the Marketplace is still HACS: open HACS, search for +*Chartdeck* and choose **Download**. To install by hand, save [chartdeck-card.js][latest-release] to `/www/` and add `/local/chartdeck-card.js` as a dashboard resource of type `module`. The From 4048be65b9b936fd20af30904c689a974c2777f3 Mon Sep 17 00:00:00 2001 From: tempus2016 Date: Sat, 7 Nov 2026 22:46:08 +0000 Subject: [PATCH 2/2] test: pin the box plot test clock The box plot fixture is relative to Date.now() and the tooltip test groups by day, so before about 09:00 or after about 20:00 midnight falls inside the readings and the first box found includes the 40 spike as an outlier. Fake only Date and pin it to 15:00 local time. --- test/box-plot.test.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/box-plot.test.ts b/test/box-plot.test.ts index 753952d..cdfcf53 100644 --- a/test/box-plot.test.ts +++ b/test/box-plot.test.ts @@ -127,6 +127,11 @@ describe('box maths', () => { type Card = HTMLElement & { setConfig(c: CardConfig): void; hass?: HomeAssistant; updateComplete: Promise }; +// The fixture is relative to now and the tooltip test groups by day, so a real clock moves +// midnight through the readings: early or late in the day the first box holds the 40 spike as +// an outlier. Pin the clock to mid-afternoon local time; only Date is faked, timers stay real. +vi.useFakeTimers({ toFake: ['Date'] }); +vi.setSystemTime(new Date(2026, 10, 7, 15, 0, 0)); const now = Date.now(); const H = 3_600_000; const sec = (msAgo: number) => (now - msAgo) / 1000;