From 925da7a2d559c5a8d305131da08c745722895329 Mon Sep 17 00:00:00 2001 From: Aaron Rose Date: Thu, 8 Oct 2020 16:44:27 +1300 Subject: [PATCH] Don't prepend device name with 'Yamaha'. Fallback to "Yamaha AVR". --- package.json | 2 +- src/platform.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d66fab3..1c6a670 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "license": "UNLICENSED", "displayName": "Yamaha AVR", "name": "homebridge-yamaha-avr", - "version": "2.0.0-beta.1", + "version": "2.0.0-beta.2", "description": "homebridge-plugin - Add a Yamaha AVR as a HomeKit Audio Receiver with Power, Input, Volume & Remote Control", "author": { "name": "ACDR", diff --git a/src/platform.ts b/src/platform.ts index 65ce0d9..19d3579 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -36,7 +36,7 @@ export class YamahaAVRPlatform implements IndependentPlatformPlugin { const device = { UUID: this.api.hap.uuid.generate(`${config.systemId}_3`), - displayName: `Yamaha ${this.config.name}`, + displayName: this.config.name ? this.config.name : 'Yamaha AVR', }; const accessory = new this.api.platformAccessory(