Skip to content

Commit 74598a1

Browse files
committed
#64 cli hex fix
1 parent 08039e2 commit 74598a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tplight.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ module.exports = yargs
199199
}, argv => {
200200
const color = hexToHsl(argv.color)
201201
const bulb = new TPLSmartDevice(argv.ip)
202-
bulb.power(true, argv.transition, { hue: color.h, saturation: color.s, brightness: color.l, color_temp: 0 })
202+
bulb.power(true, argv.transition, { hue: color.h * 100, saturation: color.s * 100, brightness: color.l * 100, color_temp: 0 })
203203
.then(r => argv.quiet || json(r))
204204
.catch(handleError)
205205
})

0 commit comments

Comments
 (0)