diff --git a/.travis.yml b/.travis.yml index dba512cb1f..69afb4e2a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,10 +5,6 @@ install: script/setup cache: directories: - "~/.platformio" - - "$TRAVIS_BUILD_DIR/.piolibdeps" - - "$TRAVIS_BUILD_DIR/tests/build/test1/.piolibdeps" - - "$TRAVIS_BUILD_DIR/tests/build/test2/.piolibdeps" - - "$TRAVIS_BUILD_DIR/tests/build/test3/.piolibdeps" matrix: fast_finish: true diff --git a/esphome/components/api/api_connection.cpp b/esphome/components/api/api_connection.cpp index 105aa00c29..bb0371b347 100644 --- a/esphome/components/api/api_connection.cpp +++ b/esphome/components/api/api_connection.cpp @@ -318,7 +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"); + msg.effects.emplace_back("None"); for (auto *effect : light->get_effects()) msg.effects.push_back(effect->get_name()); }