This was a rare condition that showed up when the update that happens at interval occurred at the same moment as light.turn_off was called. In that case this happens in this order:
someone calls light.turn_off, but light_state=off has not been registered
AL starts regular update
HA registers light as off
AL makes an update and sets the colors/brightness to the state it thinks it should have (which turns on the light again).
Closes #726
This was a rare condition that showed up when the update that happens at
interval
occurred at the same moment aslight.turn_off
was called. In that case this happens in this order:light.turn_off
, but light_state=off has not been registered