fix(light): add workaround for HA not respecting the minimum
As noted on PR #5123, when we have a very granular brightness,
color_util.brightness_to_value(range, brightness) does not stay in range,
eg with a range (1, 6), and a brightness of 20 (~8%), it returns 0.47 which
causes an error if we try to set it to the dp.