mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-19 04:33:27 +02:00
2d0d794a9d
* Daikin ARC43XXX IR remote controller support * Format and lint fixes * Check temperature values against allowed min/max
19 lines
521 B
Python
19 lines
521 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_ns = cg.esphome_ns.namespace('daikin')
|
|
DaikinClimate = daikin_ns.class_('DaikinClimate', climate_ir.ClimateIR)
|
|
|
|
CONFIG_SCHEMA = climate_ir.CLIMATE_IR_SCHEMA.extend({
|
|
cv.GenerateID(): cv.declare_id(DaikinClimate),
|
|
})
|
|
|
|
|
|
def to_code(config):
|
|
var = cg.new_Pvariable(config[CONF_ID])
|
|
yield climate_ir.register_climate_ir(var, config)
|