Skip to content

Commit 6866912

Browse files
Merge release v1.3.0
2 parents a9402bb + 37c4186 commit 6866912

29 files changed

+2703
-1513
lines changed

.github/workflows/docker-publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,38 @@ env:
1111
REGISTRY: ghcr.io
1212

1313
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: npm
24+
- name: Install dependencies
25+
run: npm ci
26+
- name: Run Prettier
27+
run: npm run lint
28+
29+
test:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
- name: Set up Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 20
38+
cache: npm
39+
- name: Install dependencies
40+
run: npm ci
41+
- name: Run tests
42+
run: npm test
43+
1444
build:
45+
needs: [lint, test]
1546
runs-on: ubuntu-latest
1647
strategy:
1748
fail-fast: false
@@ -167,6 +198,7 @@ jobs:
167198
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ steps.lower-repo.outputs.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
168199
169200
build-addon:
201+
needs: [lint, test]
170202
runs-on: ubuntu-latest
171203
strategy:
172204
fail-fast: false

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Release
22

3+
run-name: Release v${{ github.event.inputs.version }}
4+
35
on:
46
workflow_dispatch:
57
inputs:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ npm-debug.log*
3838

3939
# TypeScript
4040
*.tsbuildinfo
41+
42+
# Sensitive test data
43+
test-data.json

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
# Changelog
2+
3+
## [1.3.0] - 2025-10-03
4+
- **BREAKING**: Username and password are now required for Home Assistant addon
5+
- **BREAKING**: Removed manual device configuration from Home Assistant addon (devices are now automatically discovered via API)
6+
- Added global `inverse_forwarding` flag that flips forwarding direction for all devices when enabled. Usually you want to leave that disabled unless you know what you're doing.
7+
- Added selective inverse forwarding for HMA/HMF/HMK/HMJ devices via `inverse_forwarding_device_ids` configuration. Only use this if you previously used Hame Relay with your B2500 in Mode 2. Don't use it for Mode 1.
8+
- Added automatic inverse forwarding for all other device types (JPLS, HMM, HMN, HME, TPM-CN, HMG)
9+
- Added support for HMG devices with firmware version >= 154.0
10+
- Add support for Venus 3 devices (VNSE3)
11+
- Added Italian and Dutch translations for Home Assistant addon
12+
- Removed `default_broker_id` from Home Assistant addon default configuration
13+
214
## [1.2.0] - 2025-07-19
315
- Support multiple remote brokers via new `brokers.json`
416
- Added broker configuration for the new 2025 Hame cloud

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,23 @@ For development with automatic reloading:
3232
npm run dev
3333
```
3434

35+
## Testing
36+
37+
Run the test suite:
38+
```bash
39+
npm test
40+
```
41+
42+
Run linting:
43+
```bash
44+
npm run lint
45+
```
46+
47+
Fix linting issues automatically:
48+
```bash
49+
npm run lint:fix
50+
```
51+
3552
## Pull Requests
3653

3754
1. Fork the repository
@@ -44,3 +61,5 @@ Please make sure your PR:
4461
- Has a clear description of the changes
4562
- Follows the existing code style
4663
- Includes relevant updates to documentation
64+
- Passes all tests (`npm test`)
65+
- Passes linting checks (`npm run lint`)

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
5454
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
5555

5656
# Run the application
57-
CMD ["node", "dist/forwarder.js"]
57+
CMD ["node", "dist/main.js"]

0 commit comments

Comments
 (0)