Skip to content

Commit

Permalink
Merge branch 'main' into feature/add_all_registers_that_were_added_to…
Browse files Browse the repository at this point in the history
…_venus_since_integration_inception
  • Loading branch information
sfstar authored Feb 3, 2025
2 parents 5cbbdf7 + ef427cf commit 5482d3a
Show file tree
Hide file tree
Showing 36 changed files with 1,725 additions and 67 deletions.
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!-- READ THIS FIRST:
- Provide as many details as possible. Paste logs, configuration samples and code into the backticks.
DO NOT DELETE ANY TEXT from this template! Otherwise, your issue may be closed without comment.
-->
## The problem
<!--
Describe the issue you are experiencing here to communicate to the
maintainers. Tell us what you were trying to do and what happened.
-->


## Environment
<!--
Provide details about the versions you are using, which helps us to reproduce
and find the issue quicker. Version information is of homeassistant found in the
Home Assistant frontend: Settings -> About. The installed version of the integration can be found via HACS -> Victron GX modbus TCP
-->

- Home Assistant Core release with the issue:
- Last working Home Assistant Core release (if known):
- Integration version causing this issue:

## Problem-relevant `configuration dialog`
<!--
An example configuration that caused the problem for you. Fill this out even
if it seems unimportant to you. Please be sure to remove personal information
like passwords, private URLs and other credentials. You can provide it as text or as an screenshot.
-->

```yaml

```


## Traceback/Error logs
<!--
If you come across any trace or error logs, please provide them.
-->

```txt
```

## Additional information

60 changes: 60 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!--
You are amazing! Thanks for contributing to our project!
Please, DO NOT DELETE ANY TEXT from this template! (unless instructed).
-->
## Breaking change
<!--
If your PR contains a breaking change for existing users, it is important
to tell them what breaks, how to make it work again and why we did this.
This piece of text is published with the release notes, so it helps if you
write it towards our users, not us.
Note: Remove this section if this PR is NOT a breaking change.
-->


## Proposed change
<!--
Describe the big picture of your changes here to communicate to the
maintainers why we should accept this pull request. If it fixes a bug
or resolves a feature request, be sure to link to that issue in the
additional information section.
-->


## Type of change
<!--
What type of change does your PR introduce to Home Assistant?
NOTE: Please, check only 1! box!
If your PR requires multiple boxes to be checked, you'll most likely need to
split it into multiple PRs. This makes things easier and faster to code review.
-->

- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New integration (thank you!)
- [ ] New feature (which adds functionality to an existing integration)
- [ ] Deprecation (breaking change to happen in the future)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests

## Additional information
<!--
Details are important, and help maintainers processing your PR.
Please be sure to fill out additional details, if applicable.
-->

- This PR fixes or closes issue: fixes #
- This PR is related to issue:
- Link to documentation pull request:

## Checklist
<!--
Put an `x` in the boxes that apply. You can also fill these out after
creating the PR. If you're unsure about any of them, don't hesitate to ask.
We're here to help! This is simply a reminder of what we are going to look
for before merging your code.
-->

- [ ] The code change is tested and works locally.
- [ ] There is no commented out code in this PR.
- [ ] The code has been formatted using Ruff (`ruff format custom_components/victron`)
4 changes: 4 additions & 0 deletions .github/issue-label-bot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
label-alias:
bug: 'bug'
feature_request: 'feature_request'
question: 'question'
105 changes: 105 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---
- name: "breaking-change"
color: ee0701
description: "A breaking change for existing users."
- name: "bugfix"
color: ee0701
description: "Inconsistencies or issues which will cause a problem for users or implementors."
- name: "documentation"
color: 0052cc
description: "Solely about the documentation of the project."
- name: "enhancement"
color: 1d76db
description: "Enhancement of the code, not introducing new features."
- name: "refactor"
color: 1d76db
description: "Improvement of existing code, not introducing new features."
- name: "performance"
color: 1d76db
description: "Improving performance, not introducing new features."
- name: "new-feature"
color: 0e8a16
description: "New features or options."
- name: "maintenance"
color: 2af79e
description: "Generic maintenance tasks."
- name: "ci"
color: 1d76db
description: "Work that improves the continue integration."
- name: "dependencies"
color: 1d76db
description: "Upgrade or downgrade of project dependencies."

- name: "in-progress"
color: fbca04
description: "Issue is currently being resolved by a developer."
- name: "stale"
color: fef2c0
description: "There has not been activity on this issue or PR for quite some time."
- name: "no-stale"
color: fef2c0
description: "This issue or PR is exempted from the stable bot."

- name: "security"
color: ee0701
description: "Marks a security issue that needs to be resolved asap."
- name: "incomplete"
color: fef2c0
description: "Marks a PR or issue that is missing information."
- name: "invalid"
color: fef2c0
description: "Marks a PR or issue that is missing information."

- name: "beginner-friendly"
color: 0e8a16
description: "Good first issue for people wanting to contribute to the project."
- name: "help-wanted"
color: 0e8a16
description: "We need some extra helping hands or expertise in order to resolve this."

- name: "priority-critical"
color: ee0701
description: "This should be dealt with ASAP. Not fixing this issue would be a serious error."
- name: "priority-high"
color: b60205
description: "After critical issues are fixed, these should be dealt with before any further issues."
- name: "priority-medium"
color: 0e8a16
description: "This issue may be useful, and needs some attention."
- name: "priority-low"
color: e4ea8a
description: "Nice addition, maybe... someday..."

- name: "major"
color: b60205
description: "This PR causes a major version bump in the version number."
- name: "minor"
color: 0e8a16
description: "This PR causes a minor version bump in the version number."


- name: "shipped"
color: 006b75
description: "This issue has been shipped. 🚢"
- name: "on-hold"
color: 0052cc
description: "This issue is on hold and will not be worked on until further notice."
- name: "duplicate"
color: fef2c0
description: "This reported issue already exists."
- name: "wontfix"
color: ffffff
description: "This issue will not be fixed."

- name: "connection stability"
color: 32AE82
description: "Issue related to the stability of the connection."
- name: "data accuracy"
color: 32AE82
description: "Issue related to the format or representation of returned/to be returned data."
- name: "specsheet mismatch"
color: d93f0b
description: "Issue related to the mismatch between the victron specsheet and the actual implementation."
- name: "shipping next release (do not close)🚢"
color: b60205
description: "This issue is scheduled to be shipped in the next release."
85 changes: 85 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
name-template: "v$RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
sort-direction: ascending

categories:
- title: "🚨 Breaking changes"
labels:
- "breaking-change"
- title: "🐛 Bug fixes"
labels:
- "bugfix"
- title: "✨ New features"
labels:
- "new-feature"
- title: "🚀 Enhancements"
collapse-after: 4
labels:
- "enhancement"
- "refactor"
- "performance"
- title: "🧰 Maintenance"
collapse-after: 4
labels:
- "maintenance"
- "ci"
- title: "📚 Documentation"
collapse-after: 4
labels:
- "documentation"
- title: "⬆️ Dependency updates"
collapse-after: 4
labels:
- "dependencies"

version-resolver:
major:
labels:
- "major"
- "breaking-change"
minor:
labels:
- "minor"
- "new-feature"
patch:
labels:
- "bugfix"
- "chore"
- "ci"
- "decoding"
- "dependencies"
- "documentation"
- "enhancement"
- "performance"
- "refactor"
default: patch

exclude-contributors:
- sfstar

template: |
## Changes
$CHANGES
Special thanks to $CONTRIBUTORS for this release!
autolabeler:
- label: 'chore'
files:
- '*.md'
branch:
- '/documentation\/.+/'
- label: 'bug'
branch:
- '/bugfix\/.+/'
title:
- '/bugfix/i'
- label: 'new-feature'
branch:
- '/feature\/.+/'
body:
- '/adds/'
38 changes: 38 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
release:
types: [published]

jobs:
build:
name: 🚀 Release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write

steps:
- uses: actions/checkout@v4

- name: Get version
id: version
uses: home-assistant/actions/helpers/version@main

- name: 🔢 Adjust version number
run: |
sed -i 's/v0.0.0/${{ steps.version.outputs.version }}/' custom_components/victron/manifest.json
- name: 📦 Created zipped release package
shell: bash
run: |
cd "${{ github.workspace }}/custom_components/victron"
zip victron.zip ./* -x '.*'
- name: 🔏 Sign release package
uses: sigstore/[email protected]
with:
inputs: ${{ github.workspace }}/custom_components/victron/victron.zip

- name: ⬆️ Upload zip to release
uses: softprops/[email protected]
with:
files: ${{ github.workspace }}/custom_components/victron/victron.zip
1 change: 0 additions & 1 deletion .github/workflows/hacs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: HACS Action

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/hassfest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Validate with hassfest

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Sync labels

# yamllint disable-line rule:truthy
on:
push:
branches:
- main
paths:
- .github/labels.yml
workflow_dispatch:

jobs:
labels:
name: ♻️ Sync labels
runs-on: ubuntu-latest
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4

- name: 🚀 Run Label Syncer
uses: micnncim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 5482d3a

Please sign in to comment.