esphome/esphome/components/json/__init__.py
Otto Winter 766f6c045d
Updates
2019-04-24 23:49:02 +02:00

11 lines
292 B
Python

import esphome.codegen as cg
from esphome.core import coroutine_with_priority
json_ns = cg.esphome_ns.namespace('json')
@coroutine_with_priority(1.0)
def to_code(config):
cg.add_library('ArduinoJson-esphomelib', '5.13.3')
cg.add_define('USE_JSON')
cg.add_global(json_ns.using)