mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
Update platformio libraries (#837)
* Update platformio libraries * Lint
This commit is contained in:
parent
1e1837000d
commit
1b35855e68
4 changed files with 7 additions and 17 deletions
|
@ -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')
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue