Skip to content

Commit a1cbef7

Browse files
authored
fix switch threshold type (#115)
1 parent 5771221 commit a1cbef7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
EXECUTION_TIME = os.getenv("EXECUTION_TIME", "23:00")
1717

1818
# A threshold (in pence) over which the difference between the tariffs must be before the switch happens.
19-
SWITCH_THRESHOLD = os.getenv("SWITCH_THRESHOLD", 2)
19+
SWITCH_THRESHOLD = int(os.getenv("SWITCH_THRESHOLD", 2))
2020

2121
# List of tariff IDs to compare
2222
TARIFFS = os.getenv("TARIFFS", "go,agile,flexible")

0 commit comments

Comments
 (0)