uglify stuff to make the linter happy
This commit is contained in:
parent
741314ac8d
commit
f06d624f9f
2 changed files with 9 additions and 7 deletions
|
|
@ -64,7 +64,8 @@ const config: Config = {
|
||||||
snackbarLedOnline: {
|
snackbarLedOnline: {
|
||||||
state: {
|
state: {
|
||||||
name: "tele/tasmota-snackbar/LWT",
|
name: "tele/tasmota-snackbar/LWT",
|
||||||
type: types.option({ Online: "on", online: "on", Offline: "off", offline: "off" })
|
type: types.option({ Online: "on", online: "on",
|
||||||
|
Offline: "off", offline: "off" })
|
||||||
},
|
},
|
||||||
defaultValue: "off"
|
defaultValue: "off"
|
||||||
},
|
},
|
||||||
|
|
@ -262,7 +263,7 @@ const config: Config = {
|
||||||
"12": "Fire Pattern"
|
"12": "Fire Pattern"
|
||||||
},
|
},
|
||||||
icon: mdi("settings"),
|
icon: mdi("settings"),
|
||||||
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline == "on"
|
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline === "on"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "slider",
|
type: "slider",
|
||||||
|
|
@ -271,7 +272,7 @@ const config: Config = {
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 100,
|
max: 100,
|
||||||
icon: mdi("brightness-7"),
|
icon: mdi("brightness-7"),
|
||||||
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline == "on"
|
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline === "on"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "slider",
|
type: "slider",
|
||||||
|
|
@ -280,8 +281,8 @@ const config: Config = {
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 20,
|
max: 20,
|
||||||
icon: mdi("speedometer"),
|
icon: mdi("speedometer"),
|
||||||
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline == "on"
|
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline === "on"
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
twinkle: {
|
twinkle: {
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,11 @@ export const tasmota = {
|
||||||
[`${name}_online`]: {
|
[`${name}_online`]: {
|
||||||
state: {
|
state: {
|
||||||
name: `tele/sonoff${id}/LWT`,
|
name: `tele/sonoff${id}/LWT`,
|
||||||
type: types.option({ Online: "on", online: "on", Offline: "off", offline: "off" })
|
type: types.option({ Online: "on", online: "on",
|
||||||
|
Offline: "off", offline: "off" })
|
||||||
},
|
},
|
||||||
defaultValue: "off"
|
defaultValue: "off"
|
||||||
},
|
}
|
||||||
}),
|
}),
|
||||||
iconColor: (name: string, onColor: Color = hex("#00FF00")) =>
|
iconColor: (name: string, onColor: Color = hex("#00FF00")) =>
|
||||||
(state: State) => {
|
(state: State) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue