Skip to content

Commit

Permalink
fix model
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Sep 7, 2024
1 parent 660100b commit 0976ba6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "homebridge-air",
"displayName": "Air Quality",
"type": "module",
"version": "0.1.0",
"version": "1.0.0",
"description": "The AirNow plugin allows you to monitor the current AirQuality for your Zip Code from HomeKit and Siri.",
"author": {
"name": "donavanbecker",
Expand Down Expand Up @@ -53,7 +53,7 @@
"dependencies": {
"@homebridge/plugin-ui-utils": "^1.0.3",
"rxjs": "^7.8.1",
"striptags": "^3.0.1",
"striptags": "^3.2.0",
"undici": "^6.19.8"
},
"devDependencies": {
Expand All @@ -67,7 +67,7 @@
"@types/semver": "^7.5.8",
"@types/source-map-support": "^0.5.10",
"@vitest/coverage-v8": "^2.0.5",
"eslint": "^9.9.1",
"eslint": "^9.10.0",
"eslint-plugin-format": "^0.1.2",
"homebridge": "^1.8.4",
"homebridge-config-ui-x": "4.57.1",
Expand Down
4 changes: 2 additions & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class AirPlatform implements DynamicPlatformPlugin {
existingAccessory.context.device = device
existingAccessory.displayName = await this.validateAndCleanDisplayName(device.locationName, 'locationName', device.locationName)
existingAccessory.context.serialNumber = device.zipCode
existingAccessory.context.model = `Forecast by Zip Code`
existingAccessory.context.model = `Current Observation by Zip Code`
existingAccessory.context.FirmwareRevision = device.firmware ?? await this.getVersion()
this.api.updatePlatformAccessories([existingAccessory])
// Restore accessory
Expand All @@ -177,7 +177,7 @@ export class AirPlatform implements DynamicPlatformPlugin {
accessory.context.device = device
accessory.displayName = await this.validateAndCleanDisplayName(device.locationName, 'locationName', device.locationName)
accessory.context.serialNumber = device.zipCode
accessory.context.model = `Forecast by Zip Code`
accessory.context.model = `Current Observation by Zip Code`
accessory.context.FirmwareRevision = device.firmware ?? await this.getVersion()
// the accessory does not yet exist, so we need to create it
await this.infoLog(`Adding new accessory: ${device.locationName}`)
Expand Down

0 comments on commit 0976ba6

Please sign in to comment.