From 107ac9f0c86c0a5e3b2e0f29f5c0d8405ca79d83 Mon Sep 17 00:00:00 2001 From: Patrick762 Date: Sat, 23 Sep 2023 15:25:42 +0200 Subject: [PATCH 1/4] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 87b1f25..4b2f7f5 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ [![Validate with hassfest](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/hassfest_validation.yml/badge.svg)](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/hassfest_validation.yml) [![HACS Action](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/HACS.yml/badge.svg)](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/HACS.yml) -[![Add repo to HACS](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?repository=hassio-bluetti-bt&owner=Patrick762) - Bluetti Integration for Home Assistant Based on [bluetti_mqtt](https://github.com/warhammerkid/bluetti_mqtt). From 70d7403aecb1df354996e2febf33d1acc8bdba75 Mon Sep 17 00:00:00 2001 From: Patrick762 Date: Sun, 10 Dec 2023 16:50:47 +0100 Subject: [PATCH 2/4] Added stale bot action --- .github/workflows/stale.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..d5cd3cf --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,22 @@ +name: Close inactive issues +on: + schedule: + - cron: "30 1 * * *" + +jobs: + close-issues: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 30 + days-before-issue-close: 14 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }} From 4f99b7d746c7b4ea2053321d84970a2e616ac334 Mon Sep 17 00:00:00 2001 From: Patrick762 Date: Mon, 11 Dec 2023 19:55:44 +0100 Subject: [PATCH 3/4] Added install instructions for integration --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b2f7f5..e9d402a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # hassio-bluetti-bt -[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg)](https://github.com/hacs/integration) +[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg)](https://github.com/hacs/integration) [![Validate with hassfest](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/hassfest_validation.yml/badge.svg)](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/hassfest_validation.yml) [![HACS Action](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/HACS.yml/badge.svg)](https://github.com/Patrick762/hassio-bluetti-bt/actions/workflows/HACS.yml) @@ -7,6 +7,12 @@ Bluetti Integration for Home Assistant Based on [bluetti_mqtt](https://github.com/warhammerkid/bluetti_mqtt). +## Installation +To install this integration, you first need [HACS](https://hacs.xyz/) installed. +After the installation, you can use this button to install the integration: + +[![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=Patrick762&repository=hassio-bluetti-bt&category=integration) + ### Supported devices: (based on [supported devices of bluetti_mqtt](https://github.com/warhammerkid/bluetti_mqtt/tree/main/bluetti_mqtt/core/devices)) From 7c211cde6f00510289f193235f7473faf3535722 Mon Sep 17 00:00:00 2001 From: Rui Melo Date: Wed, 13 Dec 2023 21:11:54 +0000 Subject: [PATCH 4/4] Create pt.json --- .../bluetti_bt/translations/pt.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 custom_components/bluetti_bt/translations/pt.json diff --git a/custom_components/bluetti_bt/translations/pt.json b/custom_components/bluetti_bt/translations/pt.json new file mode 100644 index 0000000..699c50e --- /dev/null +++ b/custom_components/bluetti_bt/translations/pt.json @@ -0,0 +1,16 @@ +{ + "options": { + "step": { + "init": { + "data": { + "use_controls": "Usar os comandos", + "persistent_conn": "Ligação presistente (necessario reninciar)", + "polling_interval": "Intervalo deatualização (necessario reninciar)" + } + } + }, + "abort": { + "invalid_interval": "Valor invalido . Tem de ser no minimo 5 segundos" + } + } +}