Skip to content

Commit

Permalink
v2.1.0 (#824)
Browse files Browse the repository at this point in the history
- Major refactoring of resideo `device` files.
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.0.1..v2.1.0
  • Loading branch information
donavanbecker committed May 27, 2024
1 parent c1afc66 commit b80a785
Show file tree
Hide file tree
Showing 26 changed files with 3,163 additions and 2,851 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Node-CI Beta
on:
push:
branches: [beta-*.*.*, beta]
release:
types: [prereleased]
workflow_dispatch:

jobs:
Expand All @@ -29,3 +31,15 @@ jobs:
pre_id: 'beta'
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
needs: publish

if: ${{ github.repository == 'donavanbecker/homebridge-resideo' && github.event.release.prerelease == true }}

uses: OpenWonderLabs/.github/.github/workflows/discord-webhooks.yml@latest
with:
footer_title: "Resideo"
secrets:
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
14 changes: 6 additions & 8 deletions .github/workflows/changerelease.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Changelog to Release

on:
workflow_dispatch:
push:
paths: [CHANGELOG.md]
branches: [latest]
release:
types: [published]

jobs:
changerelease:
uses: donavanbecker/.github/.github/workflows/changerelease.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
changerelease:
uses: donavanbecker/.github/.github/workflows/changerelease.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
10 changes: 3 additions & 7 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ name: AutoDependabot

on:
pull_request:
branches:
- beta
- latest
branches: [ beta, latest ]
pull_request_target:
branches:
- beta
- latest
branches: [ beta, latest ]

jobs:
label:
dependabot:
uses: donavanbecker/.github/.github/workflows/dependabot.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
17 changes: 0 additions & 17 deletions .github/workflows/discord-webhooks.yml

This file was deleted.

9 changes: 1 addition & 8 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# https://github.com/actions/labeler/blob/main/README.md

name: Labeler

on: [pull_request]

jobs:
label:
labeler:
uses: donavanbecker/.github/.github/workflows/labeler.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 5 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: Release Drafter

on:
push:
branches:
- latest
branches: [latest]
pull_request: # required for autolabeler
types: [opened, reopened, synchronize]
workflow_dispatch:

jobs:
release-drafter:
uses: donavanbecker/.github/.github/workflows/release-drafter.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ jobs:
uses: donavanbecker/.github/.github/workflows/npm-publish.yml@latest
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
needs: publish

if: ${{ github.repository == 'donavanbecker/homebridge-august' }}

uses: donavanbecker/.github/.github/workflows/discord-webhooks.yml@latest
with:
footer_title: "Resideo"
secrets:
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"codeQL.githubDatabase.update": "never"
"codeQL.githubDatabase.update": "never",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
}
}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/)

## [2.1.0](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.1.0) (2024-05-26)

### What's Changes
- Major refactoring of resideo `device` files.
- Housekeeping and updated dependencies.

**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.0.1..v2.1.0

## [2.0.1](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.0.1) (2024-04-27)

### What's Changes
- Attempt to fix UI [#822](https://github.com/donavanbecker/homebridge-resideo/pull/822), Thanks [@bwp91](https://github.com/bwp91)

**Full Changelog**: https://github.com/donavanbecker/homebridge-resideo/compare/v2.0.0..v2.0.1

## [2.0.0](https://github.com/donavanbecker/homebridge-resideo/releases/tag/v2.0.0) (2024-01-31)

### What's Changes
Expand Down
25 changes: 21 additions & 4 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,29 @@
"title": "Name",
"default": "Resideo"
},
"callbackUrl": {
"type": "string",
"title": "Login UI Callback URL",
"description": "Callback URL for the Homebridge Resideo UI. Default is http://{hostname}:8585/auth.",
"format": "uri",
"pattern": "^https?://",
"x-schema-form": {
"type": "hostname"
},
"condition": {
"functionBody": "return (!model.port);"
}
},
"port": {
"type": "string",
"title": "Login UI Port",
"default": "8585",
"placeholder": "8585",
"description": "Port for the Homebridge Resideo UI. Default is 8585.",
"x-schema-form": {
"type": "number"
},
"condition": {
"functionBody": "return (!model.callbackUrl);"
}
},
"credentials": {
Expand All @@ -30,21 +46,21 @@
"title": "Consumer Key",
"type": "string",
"x-schema-form": {
"type": "password"
"type": "consumerKey"
}
},
"consumerSecret": {
"title": "Consumer Secret",
"type": "string",
"x-schema-form": {
"type": "password"
"type": "customerSecret"
}
},
"refreshToken": {
"title": "Refresh Token",
"type": "string",
"x-schema-form": {
"type": "password"
"type": "refreshToken"
}
},
"notice": {
Expand Down Expand Up @@ -565,6 +581,7 @@
"notitle": true
},
"options.logging",
"callbackUrl",
"port"
]
}
Expand Down
96 changes: 96 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin';


export default tseslint.config({
plugins: {
'@stylistic': stylistic,
'@typescript-eslint': tseslint.plugin,
},
languageOptions: {
parser: tseslint.parser,
parserOptions: {
project: true,
},
},
files: ['**/*.ts'],
ignores: ['.dist/*'],
extends: [
pluginJs.configs.recommended,
...tseslint.configs.recommended,
],
rules: {
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@stylistic/type-annotation-spacing': 'error',
'@stylistic/quotes': [
'warn',
'single',
],
'@stylistic/indent': [
'warn',
2,
{
'SwitchCase': 1,
},
],
'@stylistic/linebreak-style': [
'warn',
'unix',
],
'@stylistic/semi': [
'warn',
'always',
],
'@stylistic/comma-dangle': [
'warn',
'always-multiline',
],
'@stylistic/dot-notation': 'off',
'eqeqeq': 'warn',
'curly': [
'warn',
'all',
],
'@stylistic/brace-style': [
'warn',
],
'prefer-arrow-callback': [
'warn',
],
'@stylistic/max-len': [
'warn',
150,
],
'no-console': [
'warn',
], // use the provided Homebridge log method instead
'no-non-null-assertion': [
'off',
],
'@stylistic/comma-spacing': [
'error',
],
'@stylistic/no-multi-spaces': [
'warn',
{
'ignoreEOLComments': true,
},
],
'@stylistic/no-trailing-spaces': [
'warn',
],
'@stylistic/lines-between-class-members': [
'warn',
'always',
{
'exceptAfterSingleLine': true,
},
],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
});
7 changes: 5 additions & 2 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"watch": ["src"],
"ext": "ts",
"watch": [
"src",
"config.schema.json"
],
"ext": "ts, html, json",
"ignore": [],
"exec": "DEBUG= tsc && homebridge -T -D -P -I -U ~/.homebridge-dev ..",
"signal": "SIGTERM",
Expand Down
Loading

0 comments on commit b80a785

Please sign in to comment.