From 4cd0b83712215af3a4de5cbaf59b2ce0c3539edb Mon Sep 17 00:00:00 2001 From: Johann Richard <189003+johannrichard@users.noreply.github.com> Date: Fri, 30 Dec 2022 15:22:43 +0100 Subject: [PATCH] =?UTF-8?q?fix(accessory):=20=F0=9F=9A=B8=20improve=20mode?= =?UTF-8?q?l=20&=20hw=20report?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit improve the report of the switch model and hw revision --- src/myStromSwitchAccessory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/myStromSwitchAccessory.ts b/src/myStromSwitchAccessory.ts index cd6dd54..7a8b99b 100644 --- a/src/myStromSwitchAccessory.ts +++ b/src/myStromSwitchAccessory.ts @@ -54,7 +54,7 @@ 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, @@ -62,7 +62,7 @@ export class MyStromSwitchAccessory extends DingzDaBaseAccessory { ) .setCharacteristic( this.platform.Characteristic.HardwareRevision, - this.mystromDeviceInfo ? 'EU/CH v2/Zero' : 'CH v1', + this.device.model as string, ) .setCharacteristic( this.platform.Characteristic.SerialNumber,