Skip to content
Snippets Groups Projects
Commit fc6432a0 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Fix a type issue on color lamp

In the Python lamps, I used a trick to convert input to int.. temp =
int(white_temperature). But the dashboard was sending white_temperature
= '3000', yes a string and Py is ok w/ that. int('3000') = 3000

This fix the issue.
parent fd5fbd74
No related branches found
No related tags found
No related merge requests found
......@@ -167,12 +167,12 @@
brightness_input(e) {
value = e.target.value
sio_send_request(this.addr,'set_brightness',{'brightness':value})
sio_send_request(this.addr,'set_brightness',{'brightness':parseInt(value)})
}
white_temperature_input(e) {
value = e.target.value
sio_send_request(this.addr,'set_white_temperature',{'white_temperature':value})
sio_send_request(this.addr,'set_white_temperature',{'white_temperature':parseInt(value)})
}
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment