diyhue / diyHue

Main diyHue software repo
https://diyhue.org/
Other
1.52k stars 274 forks source link

avoids a float division by zero for tasmota lights, when light is dimmed off #1013

Closed GerdZanker closed 3 months ago

GerdZanker commented 3 months ago

Added a check for color conversion to avoid a float division by zero. Function is called from tasmota.py and results in this exception when light is dimmed down to zero

2024-04-01 15:38:09,297 - services.stateFetch - WARNING - MyLEDStrip is unreachable: float division by zero

This PR is related to #941.