mirror of
https://github.com/esphome/esphome.git
synced 2025-11-15 06:15:47 +00:00
* Add climate.hitachi_ac344 * Add Hitachi AC344 Climate IR test * Fixes unhandled switch-case in fan-mode * Fixes logging format * Fixes file mode * Lint clang-tidy * Lint clang-tidy * Static cast float to uint8 git push * Remove comment and debug code * Change log verbosity to VV
19 lines
559 B
Python
19 lines
559 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']
|
|
|
|
hitachi_ac344_ns = cg.esphome_ns.namespace('hitachi_ac344')
|
|
HitachiClimate = hitachi_ac344_ns.class_('HitachiClimate', climate_ir.ClimateIR)
|
|
|
|
CONFIG_SCHEMA = climate_ir.CLIMATE_IR_WITH_RECEIVER_SCHEMA.extend({
|
|
cv.GenerateID(): cv.declare_id(HitachiClimate),
|
|
})
|
|
|
|
|
|
def to_code(config):
|
|
var = cg.new_Pvariable(config[CONF_ID])
|
|
yield climate_ir.register_climate_ir(var, config)
|