Pat the linter
This commit is contained in:
parent
4e316f9e47
commit
b898455f56
1 changed files with 8 additions and 5 deletions
|
|
@ -173,7 +173,7 @@ const config: Config = {
|
||||||
heaterOfficeTsoll: {
|
heaterOfficeTsoll: {
|
||||||
state: {
|
state: {
|
||||||
name: "tele/home-rust/fritzbox/device/office/tsoll",
|
name: "tele/home-rust/fritzbox/device/office/tsoll",
|
||||||
type: (msg) => (msg.toString().split(' ')[1])
|
type: (msg) => (msg.toString().split(" ")[1])
|
||||||
},
|
},
|
||||||
command: {
|
command: {
|
||||||
name: "home-rust/fritzbox/device/office/tsoll/set",
|
name: "home-rust/fritzbox/device/office/tsoll/set",
|
||||||
|
|
@ -333,12 +333,15 @@ const config: Config = {
|
||||||
officeFan: {
|
officeFan: {
|
||||||
name: "Lüftung/Heizung Büro",
|
name: "Lüftung/Heizung Büro",
|
||||||
position: [140, 658],
|
position: [140, 658],
|
||||||
icon: withState(({heaterOfficeAuto}) =>
|
icon: withState(({heaterOfficeAuto}) => (
|
||||||
(heaterOfficeAuto === "on" ?
|
|
||||||
|
|
||||||
svg(icons.mdiRadiator).color(({heaterOfficeTsoll}) => (heaterOfficeTsoll === "254" ? hex("#FF0000") : hex("#000000")))
|
heaterOfficeAuto === "on" ?
|
||||||
: svg(icons.mdiFan).color(({fanOfficeState}) => (fanOfficeState === "on" ? hex("#00FF00") : hex("#000000")))
|
|
||||||
|
|
||||||
|
svg(icons.mdiRadiator).color(({heaterOfficeTsoll}) =>
|
||||||
|
(heaterOfficeTsoll === "254" ? hex("#FF0000") : hex("#000000")))
|
||||||
|
|
||||||
|
: svg(icons.mdiFan).color(({fanOfficeState}) =>
|
||||||
|
(fanOfficeState === "on" ? hex("#00FF00") : hex("#000000")))
|
||||||
)),
|
)),
|
||||||
ui: [
|
ui: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue