Pat the linter

This commit is contained in:
Ranlvor 2020-11-08 14:47:21 +01:00
parent 4e316f9e47
commit b898455f56
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -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: [
{