Skip to content

Commit

Permalink
#68: removed value ignore list
Browse files Browse the repository at this point in the history
  • Loading branch information
Gentleman1983 committed Mar 8, 2024
1 parent 7dbac5d commit 9a07c25
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions ginlong_solis_api_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,23 +322,6 @@ def write_to_influx_db(inverter_data, inverter_month, inverter_year, inverter_al
if dict_fields["batteryList"].len() == 0:
dict_fields.pop("batteryList")

# List of elements to be changed on influx to float
dict_fields.pop("batteryChargeEnergy")
dict_fields.pop("batteryDischargeEnergy")
dict_fields.pop("batteryMonthChargeEnergy")
dict_fields.pop("batteryMonthDischargeEnergy")
dict_fields.pop("batteryYearChargeEnergy")
dict_fields.pop("batteryYearDischargeEnergy")
dict_fields.pop("familyLoadPercent")
dict_fields.pop("gridPurchasedEnergy")
dict_fields.pop("gridPurchasedMonthEnergy")
dict_fields.pop("gridPurchasedYearEnergy")
dict_fields.pop("gridSellEnergy")
dict_fields.pop("gridSellMonthEnergy")
dict_fields.pop("gridSellYearEnergy")
dict_fields.pop("homeLoadEnergy")
dict_fields.pop("totalLoadPower")

# Read inverter_detail into dict
influx_to_submit = [
{
Expand Down

0 comments on commit 9a07c25

Please sign in to comment.