Renamed function
This commit is contained in:
parent
8bffb19b2e
commit
fc646988fe
@ -73,7 +73,7 @@ def login(email: str, phone_number: str) -> str:
|
||||
return make_request("POST", url, data=data).text
|
||||
|
||||
|
||||
def generate_ute_historic_info(
|
||||
def get_ute_historic_info(
|
||||
device_id: str,
|
||||
authorization: str,
|
||||
cost_per_kwh: float,
|
||||
@ -194,5 +194,5 @@ if __name__ == "__main__":
|
||||
average_price = (10.680 * 0.1667) + (2.223 * 0.2917) + (4.875 * 0.5416) # Each price * percentage of time on the day
|
||||
authorization = login(EMAIL, PHONE_NUMBER)
|
||||
|
||||
ute_historic_usage = generate_ute_historic_info(DEVICE_ID, authorization, average_price, date_start, date_end)
|
||||
ute_historic_usage = get_ute_historic_info(DEVICE_ID, authorization, average_price, date_start, date_end)
|
||||
ute_current_usage = get_current_usage_info(DEVICE_ID, authorization)
|
||||
|
Reference in New Issue
Block a user