From a783637a7a4ccf354021df5577d3093aac02a128 Mon Sep 17 00:00:00 2001 From: Felix Eckhofer Date: Sun, 21 Jul 2019 13:11:34 +0200 Subject: [PATCH] Restore sending "None" effect type (#667) This is a regression from 369d175694dcde3545bfc3b04711bd8dca81b2e5. --- esphome/components/api/api_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index e949f0249a..105aa00c29 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -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()); }