From b898455f56ee79ddd41890c0dda3d442bf20033e Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 8 Nov 2020 14:47:21 +0100 Subject: [PATCH] Pat the linter --- config/uwap-home/index.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/config/uwap-home/index.js b/config/uwap-home/index.js index 1bf9713..0e1e269 100644 --- a/config/uwap-home/index.js +++ b/config/uwap-home/index.js @@ -173,7 +173,7 @@ const config: Config = { heaterOfficeTsoll: { state: { name: "tele/home-rust/fritzbox/device/office/tsoll", - type: (msg) => (msg.toString().split(' ')[1]) + type: (msg) => (msg.toString().split(" ")[1]) }, command: { name: "home-rust/fritzbox/device/office/tsoll/set", @@ -333,12 +333,15 @@ const config: Config = { officeFan: { name: "Lüftung/Heizung Büro", position: [140, 658], - icon: withState(({heaterOfficeAuto}) => - (heaterOfficeAuto === "on" ? + icon: withState(({heaterOfficeAuto}) => ( - svg(icons.mdiRadiator).color(({heaterOfficeTsoll}) => (heaterOfficeTsoll === "254" ? hex("#FF0000") : hex("#000000"))) - : svg(icons.mdiFan).color(({fanOfficeState}) => (fanOfficeState === "on" ? hex("#00FF00") : hex("#000000"))) + heaterOfficeAuto === "on" ? + svg(icons.mdiRadiator).color(({heaterOfficeTsoll}) => + (heaterOfficeTsoll === "254" ? hex("#FF0000") : hex("#000000"))) + + : svg(icons.mdiFan).color(({fanOfficeState}) => + (fanOfficeState === "on" ? hex("#00FF00") : hex("#000000"))) )), ui: [ {