Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If the m_rgb_red, m_rgb_green and m_rgb_blue are all three equal to 0 which can happen if listining to an UDP stream. you can get in a state in which the turn_on command allone will not turn the LEDs back on since the color value is all 0, therefore it turns on to all colors 0 wich is off, therefore the state will be reproted off and you are unable to turn the LEDs on from HomeAssistant. The way to get out of this state would be to issue a color command together with an on command, that works, but that can not be done through the HomeAssistant default frontend, you then need to use the light.turn_on service. This PR fixes this edge case and will make sure the LEDs turn on.
- Loading branch information