Fix strobe effect

Fixes https://github.com/esphome/issues/issues/620
This commit is contained in:
Otto Winter 2019-08-31 20:23:06 +02:00
parent fb29ac27a2
commit 93cfee8026
No known key found for this signature in database
GPG key ID: DB66C0BE6013F97E

View file

@ -102,6 +102,7 @@ class StrobeLightEffect : public LightEffect {
if (!color.is_on()) { if (!color.is_on()) {
// Don't turn the light off, otherwise the light effect will be stopped // Don't turn the light off, otherwise the light effect will be stopped
call.set_brightness_if_supported(0.0f); call.set_brightness_if_supported(0.0f);
call.set_white_if_supported(0.0f);
call.set_state(true); call.set_state(true);
} }
call.set_publish(false); call.set_publish(false);