fix flow errors

This commit is contained in:
Ranlvor 2018-08-04 16:40:51 +02:00
parent 2728e082bd
commit 13edfeb154
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E
2 changed files with 4 additions and 4 deletions

View file

@ -211,9 +211,9 @@ const config: Config = {
}
},
//Tasmota-Dosen
tasmota.topics(2, "olymp_printer"),
tasmota.topics(6, "snackbar"),
tasmota.topics(7, "infoscreen"),
tasmota.topics("2", "olymp_printer"),
tasmota.topics("6", "snackbar"),
tasmota.topics("7", "infoscreen"),
//Kuechen-Floalts
floalt.topics("65537"),

View file

@ -64,7 +64,7 @@ export const tasmota = {
defaultValue: "offline"
},
}),
icon_color: (name: string, on_color: Color = hex("#00FF00")) => (state) => state[`${name}_online`] == "offline" ? hex("#888888") : (state[name] == "on" ? on_color : hex("#000000"))
icon_color: (name: string, on_color: Color = hex("#00FF00")) => (state: State) => state[`${name}_online`] == "offline" ? hex("#888888") : (state[name] == "on" ? on_color : hex("#000000"))
}
export const floalt = {
color: (light_id: string) => `floalt_${light_id}_color`,