mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	HassIO add-on (#18)
* HassIO Beginnings * Updates * Fix pylint errors * Fix pylint error
This commit is contained in:
		| @@ -4,11 +4,10 @@ import esphomeyaml.config_validation as cv | ||||
| from esphomeyaml.components import switch | ||||
| from esphomeyaml.components.ir_transmitter import IRTransmitterComponent | ||||
| from esphomeyaml.const import CONF_ADDRESS, CONF_CARRIER_FREQUENCY, CONF_COMMAND, CONF_DATA, \ | ||||
|     CONF_ID, CONF_INVERTED, CONF_IR_TRANSMITTER_ID, CONF_LG, CONF_NAME, CONF_NBITS, CONF_NEC, \ | ||||
|     CONF_INVERTED, CONF_IR_TRANSMITTER_ID, CONF_LG, CONF_NAME, CONF_NBITS, CONF_NEC, \ | ||||
|     CONF_PANASONIC, CONF_RAW, CONF_REPEAT, CONF_SONY, CONF_TIMES, CONF_WAIT_TIME | ||||
| from esphomeyaml.core import ESPHomeYAMLError | ||||
| from esphomeyaml.helpers import App, ArrayInitializer, HexIntLiteral, Pvariable, \ | ||||
|     get_variable | ||||
| from esphomeyaml.helpers import App, ArrayInitializer, HexIntLiteral, get_variable | ||||
|  | ||||
| DEPENDENCIES = ['ir_transmitter'] | ||||
|  | ||||
| @@ -98,8 +97,7 @@ def to_code(config): | ||||
|     ir = get_variable(config.get(CONF_IR_TRANSMITTER_ID), IRTransmitterComponent) | ||||
|     send_data = exp_send_data(config) | ||||
|     rhs = App.register_component(ir.create_transmitter(config[CONF_NAME], send_data)) | ||||
|     switch_ = Pvariable(DataTransmitter, config[CONF_ID], rhs) | ||||
|     switch.register_switch(switch_, config) | ||||
|     switch.register_switch(rhs, config) | ||||
|  | ||||
|  | ||||
| BUILD_FLAGS = '-DUSE_IR_TRANSMITTER' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user