Skip to content

Commit

Permalink
fix hlw timeout setting
Browse files Browse the repository at this point in the history
  • Loading branch information
KaufHA committed Jul 1, 2023
1 parent 4996296 commit 118d849
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/kauf_hlw8012/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ async def to_code(config):
cg.add(var.set_current_resistor(config[CONF_CURRENT_RESISTOR]))
cg.add(var.set_voltage_divider(config[CONF_VOLTAGE_DIVIDER]))
cg.add(var.set_sensor_model(config[CONF_MODEL]))

cg.add(var.set_timeout(config["timeout"]))

0 comments on commit 118d849

Please sign in to comment.