2019-06-28 11:29:37 +02:00
|
|
|
# Dummy integration to allow relying on AsyncTCP
|
|
|
|
import esphome.codegen as cg
|
2019-10-19 14:15:22 +02:00
|
|
|
from esphome.core import CORE, coroutine_with_priority
|
2019-06-28 11:29:37 +02:00
|
|
|
|
2020-07-25 15:57:18 +02:00
|
|
|
CODEOWNERS = ['@OttoWinter']
|
|
|
|
|
2019-06-28 11:29:37 +02:00
|
|
|
|
|
|
|
@coroutine_with_priority(200.0)
|
|
|
|
def to_code(config):
|
|
|
|
if CORE.is_esp32:
|
2019-11-05 22:28:19 +01:00
|
|
|
# https://github.com/OttoWinter/AsyncTCP/blob/master/library.json
|
|
|
|
cg.add_library('AsyncTCP-esphome', '1.1.1')
|
2019-06-28 11:29:37 +02:00
|
|
|
elif CORE.is_esp8266:
|
2019-10-18 14:46:09 +02:00
|
|
|
# https://github.com/OttoWinter/ESPAsyncTCP
|
2020-07-30 11:38:57 +02:00
|
|
|
cg.add_library('ESPAsyncTCP-esphome', '1.2.3')
|