Skip to content

Commit

Permalink
#68: added ignore list for float conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Gentleman1983 committed Mar 8, 2024
1 parent d940965 commit 3fbc2e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ginlong_solis_api_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ def write_to_influx_db(inverter_data, inverter_month, inverter_year, inverter_al
for key, value in dict_fields.items():
if isinstance(value, int):
changelist_float.append(key)
ignore_change_to_float = ["updateDate"]
for key in ignore_change_to_float:
changelist_float.pop(key)
dict_float = convert_dict_details_to_float(dict_detail,changelist_float)
dict_fields.update(dict_float)

Expand Down

0 comments on commit 3fbc2e3

Please sign in to comment.