mirror of
https://github.com/esphome/esphome.git
synced 2025-01-19 12:24:05 +00:00
Restore sending "None" effect type (#667)
This is a regression from 369d175694dcde3545bfc3b04711bd8dca81b2e5.
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…
x
Reference in New Issue
Block a user