mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
fix chip_temperature for atm90e32 component (#865)
* Added more data to atm90e32 component * ignore * correction * Delete 6chan_energy_meter.yaml * PR request changes * repository test branch * Update setup.py * Update const.py * delete test yaml * fix chip_temperature_sensor This was throwing an error if chip_temperature was used. It needed to be changed from temp to temperature. * default * Update test1.yaml
This commit is contained in:
@@ -83,6 +83,6 @@ def to_code(config):
|
||||
cg.add(var.set_freq_sensor(sens))
|
||||
if CONF_CHIP_TEMPERATURE in config:
|
||||
sens = yield sensor.new_sensor(config[CONF_CHIP_TEMPERATURE])
|
||||
cg.add(var.set_chip_temp_sensor(sens))
|
||||
cg.add(var.set_chip_temperature_sensor(sens))
|
||||
cg.add(var.set_line_freq(config[CONF_LINE_FREQUENCY]))
|
||||
cg.add(var.set_pga_gain(config[CONF_GAIN_PGA]))
|
||||
|
||||
Reference in New Issue
Block a user