Skip to content

Commit

Permalink
fix: force conf string to float
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaDodds committed Nov 20, 2022
1 parent 569e76c commit 655a4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/energy_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def set_48h_charging_schedule(caller=None, price_cap=0.22):
logging.info(f"EnergyBroker: set up charging schedule request received by {caller}")

if dotenv_config('MAX_TIBBER_BUY_PRICE'):
price_cap = int(dotenv_config('MAX_TIBBER_BUY_PRICE'))
price_cap = float(dotenv_config('MAX_TIBBER_BUY_PRICE'))

clear_victron_schedules()
new_schedule = lowest_48h_prices(price_cap=price_cap)
Expand Down

0 comments on commit 655a4db

Please sign in to comment.