From 1b35855e68c2b93da8aedcfe872ea0331c9c8150 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 5 Nov 2019 22:28:19 +0100 Subject: [PATCH] Update platformio libraries (#837) * Update platformio libraries * Lint --- esphome/components/async_tcp/__init__.py | 14 ++------------ esphome/components/mqtt/__init__.py | 2 +- esphome/components/web_server_base/__init__.py | 2 +- platformio.ini | 6 +++--- 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/esphome/components/async_tcp/__init__.py b/esphome/components/async_tcp/__init__.py index 4cbd5358ce..cf9d2f1585 100644 --- a/esphome/components/async_tcp/__init__.py +++ b/esphome/components/async_tcp/__init__.py @@ -1,23 +1,13 @@ # Dummy integration to allow relying on AsyncTCP import esphome.codegen as cg -from esphome.const import ARDUINO_VERSION_ESP32_1_0_0, ARDUINO_VERSION_ESP32_1_0_1, \ - ARDUINO_VERSION_ESP32_1_0_2 from esphome.core import CORE, coroutine_with_priority @coroutine_with_priority(200.0) def to_code(config): if CORE.is_esp32: - # https://github.com/me-no-dev/AsyncTCP/blob/master/library.json - versions_requiring_older_asynctcp = [ - ARDUINO_VERSION_ESP32_1_0_0, - ARDUINO_VERSION_ESP32_1_0_1, - ARDUINO_VERSION_ESP32_1_0_2, - ] - if CORE.arduino_version in versions_requiring_older_asynctcp: - cg.add_library('AsyncTCP', '1.0.3') - else: - cg.add_library('AsyncTCP', '1.1.1') + # https://github.com/OttoWinter/AsyncTCP/blob/master/library.json + cg.add_library('AsyncTCP-esphome', '1.1.1') elif CORE.is_esp8266: # https://github.com/OttoWinter/ESPAsyncTCP cg.add_library('ESPAsyncTCP-esphome', '1.2.2') diff --git a/esphome/components/mqtt/__init__.py b/esphome/components/mqtt/__init__.py index 073bb3cede..20d7f5aafe 100644 --- a/esphome/components/mqtt/__init__.py +++ b/esphome/components/mqtt/__init__.py @@ -155,7 +155,7 @@ def to_code(config): yield cg.register_component(var, config) # https://github.com/OttoWinter/async-mqtt-client/blob/master/library.json - cg.add_library('AsyncMqttClient-esphome', '0.8.3') + cg.add_library('AsyncMqttClient-esphome', '0.8.4') cg.add_define('USE_MQTT') cg.add_global(mqtt_ns.using) diff --git a/esphome/components/web_server_base/__init__.py b/esphome/components/web_server_base/__init__.py index 923a594eb8..d2faaf7162 100644 --- a/esphome/components/web_server_base/__init__.py +++ b/esphome/components/web_server_base/__init__.py @@ -23,4 +23,4 @@ def to_code(config): if CORE.is_esp32: cg.add_library('FS', None) # https://github.com/OttoWinter/ESPAsyncWebServer/blob/master/library.json - cg.add_library('ESPAsyncWebServer-esphome', '1.2.5') + cg.add_library('ESPAsyncWebServer-esphome', '1.2.6') diff --git a/platformio.ini b/platformio.ini index 19b850c546..4e1ef1d294 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,10 +10,10 @@ include_dir = include [common] lib_deps = - AsyncTCP@1.1.1 - AsyncMqttClient-esphome@0.8.3 + AsyncTCP-esphome@1.1.1 + AsyncMqttClient-esphome@0.8.4 ArduinoJson-esphomelib@5.13.3 - ESPAsyncWebServer-esphome@1.2.5 + ESPAsyncWebServer-esphome@1.2.6 FastLED@3.2.9 NeoPixelBus-esphome@2.5.2 ESPAsyncTCP-esphome@1.2.2