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: {
|
||||
state: {
|
||||
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"
|
||||
},
|
||||
|
|
@ -262,7 +263,7 @@ const config: Config = {
|
|||
"12": "Fire Pattern"
|
||||
},
|
||||
icon: mdi("settings"),
|
||||
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline == "on"
|
||||
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline === "on"
|
||||
},
|
||||
{
|
||||
type: "slider",
|
||||
|
|
@ -271,7 +272,7 @@ const config: Config = {
|
|||
min: 0,
|
||||
max: 100,
|
||||
icon: mdi("brightness-7"),
|
||||
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline == "on"
|
||||
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline === "on"
|
||||
},
|
||||
{
|
||||
type: "slider",
|
||||
|
|
@ -280,8 +281,8 @@ const config: Config = {
|
|||
min: 0,
|
||||
max: 20,
|
||||
icon: mdi("speedometer"),
|
||||
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline == "on"
|
||||
},
|
||||
enableCondition: ({ snackbarLedOnline }) => snackbarLedOnline === "on"
|
||||
}
|
||||
]
|
||||
},
|
||||
twinkle: {
|
||||
|
|
|
|||
|
|
@ -20,10 +20,11 @@ export const tasmota = {
|
|||
[`${name}_online`]: {
|
||||
state: {
|
||||
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"
|
||||
},
|
||||
}
|
||||
}),
|
||||
iconColor: (name: string, onColor: Color = hex("#00FF00")) =>
|
||||
(state: State) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue