From 33bcc98c4f2f2f831ce941c607c80dc07b0effd5 Mon Sep 17 00:00:00 2001 From: Martin Nemecek Date: Mon, 30 Nov 2026 19:17:42 +0100 Subject: [PATCH] Add HACS validation workflow and an Open in HACS button Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01NrA3aA4eLEG9uSXFGb9mko --- .github/workflows/hacs.yml | 16 ++++++++++++++++ README.cs.md | 4 ++++ README.md | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 .github/workflows/hacs.yml diff --git a/.github/workflows/hacs.yml b/.github/workflows/hacs.yml new file mode 100644 index 0000000..66d7fd2 --- /dev/null +++ b/.github/workflows/hacs.yml @@ -0,0 +1,16 @@ +name: HACS + +on: + push: + branches: [main] + pull_request: + schedule: + - cron: '0 5 * * 1' + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: hacs/action@main + with: + category: plugin diff --git a/README.cs.md b/README.cs.md index f85fe20..0a4690a 100644 --- a/README.cs.md +++ b/README.cs.md @@ -30,6 +30,10 @@ Zatím chybí: vizuální editor nastavení, vlastní barvy a ikony. ### HACS +[![Otevřít repozitář v HACS](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=Developer089&repository=UltimatePower-Card&category=plugin) + +Tlačítko otevře repozitář v HACS ve tvém Home Assistantu. Nebo ho přidej ručně: + 1. HACS → **⋮** → **Vlastní repozitáře**. 2. Přidej `Developer089/UltimatePower-Card`, typ **Dashboard** (ve starším HACS *Lovelace*). 3. Najdi **UltimatePower Card**, stáhni ji a obnov stránku v prohlížeči. diff --git a/README.md b/README.md index d14e297..be44654 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,10 @@ Not yet available: visual config editor, custom colours and icons. ### HACS +[![Open this repository in HACS](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=Developer089&repository=UltimatePower-Card&category=plugin) + +The button opens the repository in HACS on your Home Assistant. Or add it by hand: + 1. HACS → **⋮** → **Custom repositories**. 2. Add `Developer089/UltimatePower-Card`, type **Dashboard** (called *Lovelace* in older HACS). 3. Find **UltimatePower Card**, download it and reload the browser.