Files
esphome-dev/esphome/components/json/__init__.py
T
Oxan van Leeuwen c6dc8a11e2 Add namespace to all PlatformIO library references (#2296)
* Remove unnecessary duplication in platformio.ini

* Add namespace to all platformio library references

* Add cmake-build-* to gitignore

They're generated by the CLion add-on for each PlatformIO environment.
Listing them all separately seems nonsensical.
2021-09-15 19:01:31 +02:00

13 lines
338 B
Python

import esphome.codegen as cg
from esphome.core import coroutine_with_priority
CODEOWNERS = ["@OttoWinter"]
json_ns = cg.esphome_ns.namespace("json")
@coroutine_with_priority(1.0)
async def to_code(config):
cg.add_library("ottowinter/ArduinoJson-esphomelib", "5.13.3")
cg.add_define("USE_JSON")
cg.add_global(json_ns.using)