1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-24 13:58:14 +00:00

16 lines
499 B
Python
Raw Normal View History

# 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
2020-07-25 15:57:18 +02:00
CODEOWNERS = ['@OttoWinter']
@coroutine_with_priority(200.0)
def to_code(config):
if CORE.is_esp32:
# 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.3')