Skip to content

Commit

Permalink
Filter out "main_sync" and "none" input options
Browse files Browse the repository at this point in the history
  • Loading branch information
ACDR committed Sep 1, 2022
1 parent 4abe13c commit b98ad99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"license": "UNLICENSED",
"displayName": "Yamaha AVR",
"name": "homebridge-yamaha-avr",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "homebridge-plugin - Add a Yamaha AVR as a HomeKit Audio Receiver with Power, Input, Volume & Remote Control",
"author": {
"name": "ACDR",
Expand Down
2 changes: 1 addition & 1 deletion src/accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export class YamahaAVRAccessory {
const getNameTextResponse = await fetch(`${this.baseApiUrl}/system/getNameText`);
const nameText = (await getNameTextResponse.json()) as NameText;
const inputList = nameText.input_list;
this.state.inputs = inputList;
this.state.inputs = inputList.filter((input) => input.id !== 'main_sync' && input.id !== 'none');
} catch {
this.platform.log.error(`
Failed to get available inputs from ${this.platform.config.name}.
Expand Down

0 comments on commit b98ad99

Please sign in to comment.