Description of problem:
in sensor.py, I believe there is a cut and paste error for the energy sensor.
It reads:
if CONF_LIGHTNING_ENERGY in config:
conf = config[CONF_LIGHTNING_ENERGY]
lightning_energy_sensor = yield sensor.new_sensor(conf)
cg.add(hub.set_distance_sensor(lightning_energy_sensor))
I believe the last line should be:
cg.add(hub.set_energy_sensor(lightning_energy_sensor))
Run esphome on Windows 10 via command line
Nodemcu:
Affected component: AS3935
Description of problem: in sensor.py, I believe there is a cut and paste error for the energy sensor.
It reads: if CONF_LIGHTNING_ENERGY in config: conf = config[CONF_LIGHTNING_ENERGY] lightning_energy_sensor = yield sensor.new_sensor(conf) cg.add(hub.set_distance_sensor(lightning_energy_sensor))
I believe the last line should be: cg.add(hub.set_energy_sensor(lightning_energy_sensor))
Problem-relevant YAML-configuration entries:
Logs (if applicable):
Additional information and things you've tried: