mirror of
https://github.com/esphome/esphome.git
synced 2024-11-29 18:24:13 +01:00
18 lines
561 B
Python
18 lines
561 B
Python
import esphome.codegen as cg
|
|
import esphome.config_validation as cv
|
|
from esphome.components import climate_ir
|
|
from esphome.const import CONF_ID
|
|
|
|
AUTO_LOAD = ["climate_ir"]
|
|
|
|
daikin_arc_ns = cg.esphome_ns.namespace("daikin_arc")
|
|
DaikinArcClimate = daikin_arc_ns.class_("DaikinArcClimate", climate_ir.ClimateIR)
|
|
|
|
CONFIG_SCHEMA = climate_ir.CLIMATE_IR_WITH_RECEIVER_SCHEMA.extend(
|
|
{cv.GenerateID(): cv.declare_id(DaikinArcClimate)}
|
|
)
|
|
|
|
|
|
async def to_code(config):
|
|
var = cg.new_Pvariable(config[CONF_ID])
|
|
await climate_ir.register_climate_ir(var, config)
|