Removed minus from const value.
This commit is contained in:
parent
f25b6dfa8e
commit
27a3a08127
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ sensor:
|
||||||
lambda: |-
|
lambda: |-
|
||||||
const float perc_to_raw = 65535.0 / 100.0;
|
const float perc_to_raw = 65535.0 / 100.0;
|
||||||
const float red_to_lux = -0.32466;
|
const float red_to_lux = -0.32466;
|
||||||
const float green_to_lux = -1.57837;
|
const float green_to_lux = 1.57837;
|
||||||
const float blue_to_lux = -0.73191;
|
const float blue_to_lux = -0.73191;
|
||||||
return ((red_to_lux * id(apds9960_red).raw_state) + (green_to_lux * id(apds9960_green).raw_state) + (blue_to_lux * id(apds9960_blue).raw_state)) * perc_to_raw;
|
return ((red_to_lux * id(apds9960_red).raw_state) + (green_to_lux * id(apds9960_green).raw_state) + (blue_to_lux * id(apds9960_blue).raw_state)) * perc_to_raw;
|
||||||
update_interval: 300s
|
update_interval: 300s
|
||||||
|
|
Loading…
Reference in a new issue