esphome-ratgdo/components/ratgdo/__init__.py

8 lines
489 B
Python
Raw Normal View History

2023-06-05 17:13:01 +00:00
import esphome.codegen as cg import esphome.config_validation as cv from esphome.core import coroutine_with_priority
2023-06-05 17:12:51 +00:00
2023-06-05 17:13:01 +00:00
ratgdo_ns = cg.esphome_ns.namespace("ratgdo")
2023-06-05 17:12:51 +00:00
2023-06-05 17:13:01 +00:00
CONFIG_SCHEMA = cv.All(cv.Schema({}), )
2023-06-05 17:12:51 +00:00
2023-06-05 17:13:01 +00:00
@coroutine_with_priority(1.0) async def to_code(config) :cg.add_library("bblanchon/ArduinoJson", "6.18.5") cg.add_define("USE_JSON") cg.add_global(ratgdo_ns.using)