HA-Raspberry-pi-GPIO-PWM icon indicating copy to clipboard operation
HA-Raspberry-pi-GPIO-PWM copied to clipboard

return DEFAULT_BRIGHTNESS if brightness is 'none'

Open AndreasLehmann opened this issue 1 year ago • 0 comments

If brightness as never set before I got an error by dividing 'none' by 255. So I return the DEFAULT_BRIGHTNESS if as default.

AndreasLehmann avatar Nov 23 '24 10:11 AndreasLehmann