From 2f0c4a1dea83734d215dc2549afeb8b3a49db295 Mon Sep 17 00:00:00 2001 From: jstaegerino Date: Sun, 9 Jun 2024 15:32:12 +0200 Subject: [PATCH 1/3] Main ## Additional information - This PR fixes or closes issue: fixes # - This PR is related to issue: - Link to documentation pull request: ## Checklist - [x] The code change is tested and works locally. - [x] There is no commented out code in this PR. - [x] I have followed the [contribution guidelines](https://github.com/UI-Lovelace-Minimalist/UI/blob/main/.github/CONTRIBUTING.md) - [ ] This PR is for a custom-card or documentation change and therefore directed to the `main` branch. - [x] This PR is for a official card or any other directly to the integration related change and therefore directed to the `release` branch. --- .../card_templates/cards/card_vertical_button.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_vertical_button.yaml b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_vertical_button.yaml index 1667d8e9d..de40d17a0 100644 --- a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_vertical_button.yaml +++ b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_vertical_button.yaml @@ -82,6 +82,11 @@ card_vertical_button: return "script.toggle"; if( entity.entity_id.startsWith("button.") ) return "button.press"; + if( entity.entity_id.startsWith("lock.") ) + if(entity.state == "locked") + return "lock.unlock"; + else + return "lock.lock"; // If we need to support other entities we can add these options here. return ""; ]]] From 502b63960cb6a9302a406e41831b548fb5836470 Mon Sep 17 00:00:00 2001 From: jstaegerino Date: Sun, 9 Jun 2024 15:49:01 +0200 Subject: [PATCH 2/3] update node.js --- .github/workflows/automatic-custom-card-docs.yml | 2 +- .github/workflows/check-code-quality.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/hacs-validate.yml | 4 ++-- .github/workflows/labeler.yml | 2 +- .github/workflows/pages.yml | 2 +- .github/workflows/release.yml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/automatic-custom-card-docs.yml b/.github/workflows/automatic-custom-card-docs.yml index a92327fbe..8a208c036 100644 --- a/.github/workflows/automatic-custom-card-docs.yml +++ b/.github/workflows/automatic-custom-card-docs.yml @@ -11,7 +11,7 @@ jobs: docit: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v3" + - uses: "actions/4" with: fetch-depth: 0 - name: "Copy and rename README.md files" diff --git a/.github/workflows/check-code-quality.yml b/.github/workflows/check-code-quality.yml index 2583600cb..07a7fae1a 100644 --- a/.github/workflows/check-code-quality.yml +++ b/.github/workflows/check-code-quality.yml @@ -11,7 +11,7 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "⤵️ Check out code from GitHub" - uses: "actions/checkout@v3" + uses: "actions/checkout@v4" - name: "⚙️ Set up Python" uses: "actions/setup-python@v4" with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f54dfd08b..1fbd12737 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -34,7 +34,7 @@ jobs: steps: - name: "Checkout repository" - uses: "actions/checkout@v3" + uses: "actions/checkout@v4" # Initializes the CodeQL tools for scanning. - name: "Initialize CodeQL" diff --git a/.github/workflows/hacs-validate.yml b/.github/workflows/hacs-validate.yml index d9a19e621..d2986cfa9 100644 --- a/.github/workflows/hacs-validate.yml +++ b/.github/workflows/hacs-validate.yml @@ -13,7 +13,7 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "checkout" - uses: "actions/checkout@v3" + uses: "actions/checkout@v4" - name: "validation" uses: "home-assistant/actions/hassfest@master" @@ -22,7 +22,7 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "checkout" - uses: "actions/checkout@v3" + uses: "actions/checkout@v4" - name: "validation" uses: "hacs/action@main" with: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index a782ee3b6..2ed8a8677 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -12,7 +12,7 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "⤵️ Check out code from GitHub" - uses: "actions/checkout@v3" + uses: "actions/checkout@v4" - name: "\U0001F680 Run Labeler" uses: "crazy-max/ghaction-github-labeler@v4" with: diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d03239b40..2574a458e 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -10,7 +10,7 @@ jobs: deploy: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v3" + - uses: "actions/checkout@v4" with: node-version: "16.x" - uses: "actions/setup-python@v4" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3196cc7e6..12d6ee6ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: runs-on: "ubuntu-latest" steps: - name: "Check out repository" - uses: "actions/checkout@v3" + uses: "actions/checkout@v4" - name: "Get version" id: "version" From cba56ce06aa6bf99d97bf21e0bfb16441b172b04 Mon Sep 17 00:00:00 2001 From: jstaegerino Date: Sun, 9 Jun 2024 15:52:45 +0200 Subject: [PATCH 3/3] init: maybe this time... --- .github/workflows/pages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 2574a458e..335876e14 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: "actions/checkout@v4" with: - node-version: "16.x" + node-version: "20.x" - uses: "actions/setup-python@v4" with: python-version: "3.11"