Skip to content

Commit

Permalink
fix: added homepage to package.json, name field and releases
Browse files Browse the repository at this point in the history
  • Loading branch information
kovapatrik committed May 22, 2024
1 parent 5aedd70 commit af9df1f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
release:
runs-on: ubuntu-latest
needs: publish
steps:
- uses: actions/checkout@v2
- name: Release
uses: softprops/action-gh-release@v2
6 changes: 6 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Name of the BlueAir Purifier platform in Homebridge.",
"type": "string"
},
"username": {
"title": "Username",
"description": "Username for BlueAir account. This should be filled in automatically in the discovery process.",
Expand Down Expand Up @@ -105,6 +110,7 @@
"expanded": true,
"title": "Common Settings",
"items": [
"name",
"username",
"password",
"region",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"displayName": "Homebridge BlueAir Platform",
"name": "homebridge-blueair-purifier",
"version": "1.0.0",
"version": "1.0.1",
"description": "Homebridge plugin for BlueAir purifiers",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/kovapatrik/homebridge-blueair-purifier.git"
},
"homepage": "https://github.com/kovapatrik/homebridge-blueair-purifier#readme",
"bugs": {
"url": "https://github.com/kovapatrik/homebridge-blueair-purifier/issues"
},
Expand Down
1 change: 1 addition & 0 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class BlueAirPlatform extends EventEmitter implements DynamicPlatformPlug
) {
super();
this.platformConfig = defaultsDeep(config, defaultConfig);
this.log.debug('Finished initializing platform:', this.platformConfig.name);

if (!this.platformConfig.username || !this.platformConfig.password || !this.platformConfig.accountUuid) {
this.log.error(
Expand Down
2 changes: 2 additions & 0 deletions src/platformUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export type Config = {
name: string;
username: string;
password: string;
region: Region;
Expand Down Expand Up @@ -39,6 +40,7 @@ export const RegionMap = {
};

export const defaultConfig: Config = {
name: 'BlueAir Platform',
uiDebug: false,
verboseLogging: false,
username: '',
Expand Down

0 comments on commit af9df1f

Please sign in to comment.