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:
committed by
GitHub
parent
7d2fcf59fd
commit
b270ff335d
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user