1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 00:05:43 +00:00

Fix AS3935 sensor configuration issues (#1210)

* Fix AS3935 coniguration

* Increase verbosity
This commit is contained in:
Gediminas Šaltenis
2020-07-28 11:34:42 +03:00
committed by GitHub
parent 7d2fcf59fd
commit b270ff335d
3 changed files with 5 additions and 2 deletions

View File

@@ -27,4 +27,4 @@ def to_code(config):
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))
cg.add(hub.set_energy_sensor(lightning_energy_sensor))