RZL: Fix eslint warnings for onkyo
This commit is contained in:
parent
1263c56cfc
commit
c8f014c573
1 changed files with 38 additions and 38 deletions
|
|
@ -5,7 +5,7 @@ import { hex } from "config/colors";
|
||||||
import * as types from "config/types";
|
import * as types from "config/types";
|
||||||
|
|
||||||
export const topics: Topics = {
|
export const topics: Topics = {
|
||||||
onkyo_connection: {
|
onkyoConnection: {
|
||||||
state: {
|
state: {
|
||||||
name: "/service/onkyo/connected",
|
name: "/service/onkyo/connected",
|
||||||
type: types.option({
|
type: types.option({
|
||||||
|
|
@ -16,7 +16,7 @@ export const topics: Topics = {
|
||||||
},
|
},
|
||||||
defaultValue: "disconnected"
|
defaultValue: "disconnected"
|
||||||
},
|
},
|
||||||
onkyo_power: {
|
onkyoPower: {
|
||||||
state: {
|
state: {
|
||||||
name: "/service/onkyo/status/system-power",
|
name: "/service/onkyo/status/system-power",
|
||||||
type: types.json("onkyo_raw", types.option({
|
type: types.json("onkyo_raw", types.option({
|
||||||
|
|
@ -30,7 +30,7 @@ export const topics: Topics = {
|
||||||
},
|
},
|
||||||
defaultValue: "off"
|
defaultValue: "off"
|
||||||
},
|
},
|
||||||
onkyo_mute: {
|
onkyoMute: {
|
||||||
state: {
|
state: {
|
||||||
name: "/service/onkyo/status/audio-muting",
|
name: "/service/onkyo/status/audio-muting",
|
||||||
type: types.json("onkyo_raw", types.option({
|
type: types.json("onkyo_raw", types.option({
|
||||||
|
|
@ -44,7 +44,7 @@ export const topics: Topics = {
|
||||||
},
|
},
|
||||||
defaultValue: "off"
|
defaultValue: "off"
|
||||||
},
|
},
|
||||||
onkyo_volume: {
|
onkyoVolume: {
|
||||||
state: {
|
state: {
|
||||||
name: "/service/onkyo/status/volume",
|
name: "/service/onkyo/status/volume",
|
||||||
type: types.json("val")
|
type: types.json("val")
|
||||||
|
|
@ -55,7 +55,7 @@ export const topics: Topics = {
|
||||||
},
|
},
|
||||||
defaultValue: "0"
|
defaultValue: "0"
|
||||||
},
|
},
|
||||||
onkyo_inputs: {
|
onkyoInputs: {
|
||||||
state: {
|
state: {
|
||||||
name: "/service/onkyo/status/input-selector",
|
name: "/service/onkyo/status/input-selector",
|
||||||
type: types.json("onkyo_raw", types.option({
|
type: types.json("onkyo_raw", types.option({
|
||||||
|
|
@ -80,19 +80,19 @@ export const topics: Topics = {
|
||||||
},
|
},
|
||||||
defaultValue: "unknown"
|
defaultValue: "unknown"
|
||||||
},
|
},
|
||||||
onkyo_radios: {
|
onkyoRadios: {
|
||||||
state: {
|
state: {
|
||||||
name: "/service/onkyo/status/latest-NPR",
|
name: "/service/onkyo/status/latest-NPR",
|
||||||
type: types.option({
|
type: types.option({
|
||||||
NPR01: "mpd",
|
NPR01: "mpd",
|
||||||
NPR02: "kohina",
|
NPR02: "kohina",
|
||||||
NPR03: "somafm_dronezone",
|
NPR03: "somafmDronezone",
|
||||||
NPR04: "somafm_thetrip",
|
NPR04: "somafmThetrip",
|
||||||
NPR05: "querfunk",
|
NPR05: "querfunk",
|
||||||
NPR06: "somafm_defconradio",
|
NPR06: "somafmDefconradio",
|
||||||
NPR07: "somafm_secretagent",
|
NPR07: "somafmSecretagent",
|
||||||
NPR08: "somafm_lush",
|
NPR08: "somafmLush",
|
||||||
NPR09: "somafm_beatblender",
|
NPR09: "somafmBeatblender",
|
||||||
NPR0a: "ponyville",
|
NPR0a: "ponyville",
|
||||||
otherwise: "unknown"
|
otherwise: "unknown"
|
||||||
})
|
})
|
||||||
|
|
@ -102,13 +102,13 @@ export const topics: Topics = {
|
||||||
type: types.option({
|
type: types.option({
|
||||||
mpd: "NPR01",
|
mpd: "NPR01",
|
||||||
kohina: "NPR02",
|
kohina: "NPR02",
|
||||||
somafm_dronezone: "NPR03",
|
somafmDronezone: "NPR03",
|
||||||
somafm_thetrip: "NPR04",
|
somafmThetrip: "NPR04",
|
||||||
querfunk: "NPR05",
|
querfunk: "NPR05",
|
||||||
somafm_defconradio: "NPR06",
|
somafmDefconradio: "NPR06",
|
||||||
somafm_secretagent: "NPR07",
|
somafmSecretagent: "NPR07",
|
||||||
somafm_lush: "NPR08",
|
somafmLush: "NPR08",
|
||||||
somafm_beatblender: "NPR09",
|
somafmBeatblender: "NPR09",
|
||||||
ponyville: "NPR0a",
|
ponyville: "NPR0a",
|
||||||
otherwise: "NPR00"
|
otherwise: "NPR00"
|
||||||
})
|
})
|
||||||
|
|
@ -121,17 +121,17 @@ export const controls: Controls = {
|
||||||
onkyo: {
|
onkyo: {
|
||||||
name: "Onkyo",
|
name: "Onkyo",
|
||||||
position: [350, 650],
|
position: [350, 650],
|
||||||
iconColor: ({onkyo_connection, onkyo_power}) =>
|
iconColor: ({onkyoConnection, onkyoPower}) =>
|
||||||
(onkyo_connection !== "connected" ? hex("#888888") :
|
(onkyoConnection !== "connected" ? hex("#888888") :
|
||||||
(onkyo_power === "on" ? hex("#00FF00") : hex("#000000"))),
|
(onkyoPower === "on" ? hex("#00FF00") : hex("#000000"))),
|
||||||
icon: mdi("audio-video"),
|
icon: mdi("audio-video"),
|
||||||
ui: [
|
ui: [
|
||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
text: "Power",
|
text: "Power",
|
||||||
icon: mdi("power"),
|
icon: mdi("power"),
|
||||||
topic: "onkyo_power",
|
topic: "onkyoPower",
|
||||||
enableCondition: (state) => state.onkyo_connection === "connected"
|
enableCondition: (state) => state.onkyoConnection === "connected"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "section",
|
type: "section",
|
||||||
|
|
@ -140,18 +140,18 @@ export const controls: Controls = {
|
||||||
{
|
{
|
||||||
type: "slider",
|
type: "slider",
|
||||||
text: "Volume",
|
text: "Volume",
|
||||||
topic: "onkyo_volume",
|
topic: "onkyoVolume",
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 50,
|
max: 50,
|
||||||
icon: mdi("volume-high"),
|
icon: mdi("volume-high"),
|
||||||
enableCondition: (state) => state.onkyo_connection === "connected"
|
enableCondition: (state) => state.onkyoConnection === "connected"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "toggle",
|
type: "toggle",
|
||||||
text: "Mute",
|
text: "Mute",
|
||||||
topic: "onkyo_mute",
|
topic: "onkyoMute",
|
||||||
icon: mdi("volume-off"),
|
icon: mdi("volume-off"),
|
||||||
enableCondition: (state) => state.onkyo_connection === "connected"
|
enableCondition: (state) => state.onkyoConnection === "connected"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "section",
|
type: "section",
|
||||||
|
|
@ -160,7 +160,7 @@ export const controls: Controls = {
|
||||||
{
|
{
|
||||||
type: "dropDown",
|
type: "dropDown",
|
||||||
text: "Eingang",
|
text: "Eingang",
|
||||||
topic: "onkyo_inputs",
|
topic: "onkyoInputs",
|
||||||
options: {
|
options: {
|
||||||
netzwerk: "Netzwerk",
|
netzwerk: "Netzwerk",
|
||||||
tisch: "Tisch",
|
tisch: "Tisch",
|
||||||
|
|
@ -169,27 +169,27 @@ export const controls: Controls = {
|
||||||
front: "Front HDMI"
|
front: "Front HDMI"
|
||||||
},
|
},
|
||||||
icon: mdi("usb"),
|
icon: mdi("usb"),
|
||||||
enableCondition: (state) => state.onkyo_connection === "connected"
|
enableCondition: (state) => state.onkyoConnection === "connected"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "dropDown",
|
type: "dropDown",
|
||||||
text: "Netzwerksender",
|
text: "Netzwerksender",
|
||||||
topic: "onkyo_radios",
|
topic: "onkyoRadios",
|
||||||
options: {
|
options: {
|
||||||
mpd: "MPD",
|
mpd: "MPD",
|
||||||
kohina: "Kohina",
|
kohina: "Kohina",
|
||||||
somafm_dronezone: "Drone Zone (SomaFM)",
|
somafmDronezone: "Drone Zone (SomaFM)",
|
||||||
somafm_thetrip: "The Trip (SomaFM)",
|
somafmThetrip: "The Trip (SomaFM)",
|
||||||
querfunk: "Querfunk",
|
querfunk: "Querfunk",
|
||||||
somafm_defconradio: "Defcon Radio (SomaFM)",
|
somafmDefconradio: "Defcon Radio (SomaFM)",
|
||||||
somafm_secretagent: "Secret Agent (SomaFM)",
|
somafmSecretagent: "Secret Agent (SomaFM)",
|
||||||
somafm_lush: "Lush (SomaFM)",
|
somafmLush: "Lush (SomaFM)",
|
||||||
somafm_beatblender: "Beat Blender (Soma FM)",
|
somafmBeatblender: "Beat Blender (Soma FM)",
|
||||||
ponyville: "Ponyville FM"
|
ponyville: "Ponyville FM"
|
||||||
},
|
},
|
||||||
icon: mdi("radio"),
|
icon: mdi("radio"),
|
||||||
enableCondition: (state) => state.onkyo_connection === "connected"
|
enableCondition: (state) => state.onkyoConnection === "connected"
|
||||||
&& state.onkyo_inputs === "netzwerk"
|
&& state.onkyoInputs === "netzwerk"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "section",
|
type: "section",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue