This bug fix really shouldn't be needed

This commit is contained in:
uwap 2018-04-08 13:28:04 +02:00
parent 9a8f9c57bf
commit 9bd5d5c9c8

View file

@ -526,7 +526,7 @@ const config : Config = {
type: "toggle", type: "toggle",
on: 50, on: 50,
off: 0, off: 0,
toggled: n => n > 0, toggled: n => parseInt(n) > 0,
topic: "kitchen_light_brightness", topic: "kitchen_light_brightness",
text: "Ein/Ausschalten", text: "Ein/Ausschalten",
icon: "power" icon: "power"