run lint --fix

This commit is contained in:
Ranlvor 2019-05-11 00:51:12 +02:00
parent c3fa87a869
commit 6fcc9b44fe
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -14,10 +14,10 @@ const topic_bulb = (bulb: string, argument: string) => ({
type: types.string type: types.string
}, },
defaultValue: "0" defaultValue: "0"
}, }
}); });
const slider_rgb = (bulb: string, argument: string) => ( const slider_rgb = (bulb: string, argument: string) => (
[{ [{
type: "slider", type: "slider",
min: 0, min: 0,
@ -27,7 +27,7 @@ const slider_rgb = (bulb: string, argument: string) => (
topic: `${bulb}${argument}` topic: `${bulb}${argument}`
}] }]
); );
const slider_h = (bulb: string, argument: string) => ( const slider_h = (bulb: string, argument: string) => (
[{ [{
type: "slider", type: "slider",
min: 0, min: 0,
@ -37,7 +37,7 @@ const slider_h = (bulb: string, argument: string) => (
topic: `${bulb}${argument}` topic: `${bulb}${argument}`
}] }]
); );
const slider_svxy = (bulb: string, argument: string) => ( const slider_svxy = (bulb: string, argument: string) => (
[{ [{
type: "slider", type: "slider",
min: 0, min: 0,
@ -64,16 +64,16 @@ const config: Config = {
*zigbee2mqtt/bulb_bedroom *zigbee2mqtt/bulb_bedroom
*/ */
...topic_bulb("livingroom","r"), ...topic_bulb("livingroom", "r"),
...topic_bulb("livingroom","g"), ...topic_bulb("livingroom", "g"),
...topic_bulb("livingroom","b"), ...topic_bulb("livingroom", "b"),
...topic_bulb("livingroom","h"), ...topic_bulb("livingroom", "h"),
...topic_bulb("livingroom","s"), ...topic_bulb("livingroom", "s"),
...topic_bulb("livingroom","v"), ...topic_bulb("livingroom", "v"),
...topic_bulb("livingroom","x"), ...topic_bulb("livingroom", "x"),
...topic_bulb("livingroom","y"), ...topic_bulb("livingroom", "y"),
...topic_bulb("livingroom","animation-speed"), ...topic_bulb("livingroom", "animation-speed"),
...topic_bulb("livingroom","mode"), ...topic_bulb("livingroom", "mode"),
livingroomBrightness: { livingroomBrightness: {
state: { state: {
name: "home-rust/bulb/livingroom/brightness", name: "home-rust/bulb/livingroom/brightness",
@ -234,7 +234,7 @@ const config: Config = {
"3": "RGB Fade", "3": "RGB Fade",
"4": "Work" "4": "Work"
}, },
icon: mdi("settings"), icon: mdi("settings")
}, },
{ {
type: "section", type: "section",
@ -244,19 +244,19 @@ const config: Config = {
.concat(slider_rgb("livingroom", "g")) .concat(slider_rgb("livingroom", "g"))
.concat(slider_rgb("livingroom", "b")) .concat(slider_rgb("livingroom", "b"))
.concat([ .concat([
{ {
type: "section", type: "section",
text: "HSV" text: "HSV"
} }
]).concat(slider_h("livingroom", "h")) ]).concat(slider_h("livingroom", "h"))
.concat(slider_svxy("livingroom", "s")) .concat(slider_svxy("livingroom", "s"))
.concat(slider_svxy("livingroom", "v")) .concat(slider_svxy("livingroom", "v"))
.concat([ .concat([
{ {
type: "section", type: "section",
text: "XY" text: "XY"
} }
]).concat(slider_svxy("livingroom", "x")) ]).concat(slider_svxy("livingroom", "x"))
.concat(slider_svxy("livingroom", "y")) .concat(slider_svxy("livingroom", "y"))
} }
}, },