Skip to content

Commit

Permalink
#68: transforming now hopefully the correct integer values to float
Browse files Browse the repository at this point in the history
  • Loading branch information
Gentleman1983 committed Mar 8, 2024
1 parent effcb3f commit 4f00ea9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ginlong_solis_api_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,14 @@ def write_to_influx_db(inverter_data, inverter_month, inverter_year, inverter_al

# Convert float values
changelist_float = []
for key, value in dict_fields.items():
for key, value in dict_detail.items():
if isinstance(value, int):
changelist_float.append(key)
ignore_change_to_float = ["updateDate"]

ignore_change_to_float = []
for key in ignore_change_to_float:
changelist_float.remove(key)

dict_float = convert_dict_details_to_float(dict_detail, changelist_float)
dict_fields.update(dict_float)

Expand Down

0 comments on commit 4f00ea9

Please sign in to comment.