Fix return type of getBrightness() to be float, not bool

Fix return type of getBrightness() (should be float, not bool).