mirror of
https://github.com/esphome/esphome.git
synced 2024-11-17 10:55:36 +01:00
Restore sending "None" effect type (#667)
This is a regression from 369d175694
.
This commit is contained in:
parent
7210ad7ed9
commit
a783637a7a
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user