Skip to content

Commit

Permalink
fix(accessory): 🚸 improve model & hw report
Browse files Browse the repository at this point in the history
improve the report of the switch model and hw revision
  • Loading branch information
johannrichard committed Dec 30, 2022
1 parent a3b40b7 commit 4cd0b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/myStromSwitchAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ export class MyStromSwitchAccessory extends DingzDaBaseAccessory {
)
.setCharacteristic(
this.platform.Characteristic.Model,
this.device.model as string,
`MyStrom WiFi Switch ${this.device.model as string}`,
)
.setCharacteristic(
this.platform.Characteristic.FirmwareRevision,
this.mystromDeviceInfo.version ?? 'N/A',
)
.setCharacteristic(
this.platform.Characteristic.HardwareRevision,
this.mystromDeviceInfo ? 'EU/CH v2/Zero' : 'CH v1',
this.device.model as string,
)
.setCharacteristic(
this.platform.Characteristic.SerialNumber,
Expand Down

0 comments on commit 4cd0b83

Please # to comment.