mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
Restore sending "None" effect type (#667)
This is a regression from 369d175694
.
This commit is contained in:
parent
7210ad7ed9
commit
a783637a7a
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue