Restore sending "None" effect type (#667)

This is a regression from 369d175694.
This commit is contained in:
Felix Eckhofer 2019-07-21 13:11:34 +02:00 committed by Otto Winter
parent 7210ad7ed9
commit a783637a7a

View File

@ -318,6 +318,7 @@ bool APIConnection::send_light_info(light::LightState *light) {
msg.max_mireds = traits.get_max_mireds();
}
if (light->supports_effects()) {
msg.effects.push_back("None");
for (auto *effect : light->get_effects())
msg.effects.push_back(effect->get_name());
}